[PATCH] KVM: PPC: Book3S HV: Initialize AMOR in nested entry
Fabiano Rosas
farosas at linux.ibm.com
Fri Apr 29 02:37:38 AEST 2022
Nicholas Piggin <npiggin at gmail.com> writes:
> Excerpts from Fabiano Rosas's message of April 26, 2022 12:21 am:
>> The hypervisor always sets AMOR to ~0, but let's ensure we're not
>> passing stale values around.
>>
>
> Reviewed-by: Nicholas Piggin <npiggin at gmail.com>
>
> Looks like our L0 doesn't do anything with hvregs.amor ?
It doesn't. And if the HV ever starts clearing bits from AMOR, then we
would need to change any kernel code that writes and reads from AMR (
such as the KUAP) to take into consideration that we might read a
different value from what we wrote.
More information about the Linuxppc-dev
mailing list