]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Ensure MSR[ME] is always set in guest MSR
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 Apr 2021 01:48:44 +0000 (11:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Apr 2021 03:36:24 +0000 (13:36 +1000)
commit691182948c52db45e2c6dae3cae0458d001ce223
treed43d41283f20b0de4035430f554e81549423dbb7
parentf2f0f98eface1956a6fbf486636a69424d72fb43
KVM: PPC: Book3S HV: Ensure MSR[ME] is always set in guest MSR

Rather than add the ME bit to the MSR at guest entry, make it clear
that the hypervisor does not allow the guest to clear the bit.

The ME set is kept in guest entry for now, but a future patch will
warn if it's not present.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.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-12-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv_builtin.c
arch/powerpc/kvm/book3s_hv_nested.c