]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Disallow LPCR[AIL] to be set to 1 or 2
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 Apr 2021 01:48:37 +0000 (11:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Apr 2021 03:36:23 +0000 (13:36 +1000)
commite1a19198848b7303d667a175ab1adc8dea7ee6f7
treeae597f5144a13a0e117556757348a776782ecabe
parentfad58243cba28e5e61c60bedc8c0662bd54fbd8c
KVM: PPC: Book3S HV: Disallow LPCR[AIL] to be set to 1 or 2

These are already disallowed by H_SET_MODE from the guest, also disallow
these by updating LPCR directly.

AIL modes can affect the host interrupt behaviour while the guest LPCR
value is set, so filter it here too.

Suggested-by: Fabiano Rosas <farosas@linux.ibm.com>
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-5-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c