KVM: PPC: Book3S HV: Ensure MSR[HV] is always clear in guest MSR
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 Apr 2021 01:48:45 +0000 (11:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Apr 2021 03:36:24 +0000 (13:36 +1000)
commit732f21a3053cf279eb6b85d19b7818a8f1dd2071
tree5ecb631fe70e129c58af8986cafbb6d17acbe91c
parent946cf44ac6ce61378ea02386d39394a06d502f28
KVM: PPC: Book3S HV: Ensure MSR[HV] is always clear in guest MSR

Rather than clear the HV bit from the MSR at guest entry, make it clear
that the hypervisor does not allow the guest to set the bit.

The HV clear is kept in guest entry for now, but a future patch will
warn if it is set.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210412014845.1517916-13-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv_builtin.c
arch/powerpc/kvm/book3s_hv_nested.c