]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad7bcf9128c661aae87cabb4076266c777b5eb4a
tree5ecb631fe70e129c58af8986cafbb6d17acbe91c
parent980dabde62940ab885f0a14bf75c8105328514a8
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