Revert "KVM: PPC: Book3S HV Nested: Stop forwarding all HFUs to L1"
authorGautam Menghani <gautam@linux.ibm.com>
Sat, 9 Nov 2024 06:32:55 +0000 (12:02 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Nov 2024 02:04:23 +0000 (13:04 +1100)
commited351c57432122c4499be4f4aee8711d6fa93f3b
treedc8ca9012c3b82cf704821262192baa62be88950
parent96e266e3bcd6ed03f0be62c2fcf92bf1e3dc8a6a
Revert "KVM: PPC: Book3S HV Nested: Stop forwarding all HFUs to L1"

This reverts commit 7c3ded5735141ff4d049747c9f76672a8b737c49.

On PowerNV, when a nested guest tries to use a feature prohibited by
HFSCR, the nested hypervisor (L1) should get a H_FAC_UNAVAILABLE trap
so that L1 can emulate the feature. But with the change introduced by
commit 7c3ded573514 ("KVM: PPC: Book3S HV Nested: Stop forwarding all HFUs
to L1") the L1 ends up getting a H_EMUL_ASSIST because of which, the L1
ends up injecting a SIGILL when L2 (nested guest) tries to use doorbells.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241109063301.105289-2-gautam@linux.ibm.com
arch/powerpc/kvm/book3s_hv.c