These issues were identified while adding kvm powerpc selftests infrastructure support [1]. Patch-1 and Patch-2 were identified while running the selftests on Qemu+TCG+powernv+BE, while Patch-3 can also be reproduced on a real pseries LPAR with nestedv2 capabilities.
[1]: https://lore.kernel.org/linuxppc-dev/[email protected]/ Ritesh Harjani (IBM) (3): KVM: PPC: Book3S HV: Read EX_DSISR as a 32-bit field on guest exit KVM: PPC: Don't call __ffs() on an empty pending_exceptions bitmap KVM: PPC: Book3S HV nestedv2: cap max vcpus to PAPR limit arch/powerpc/include/asm/kvm_host.h | 1 + arch/powerpc/kvm/book3s.c | 22 ++++++++++++---------- arch/powerpc/kvm/book3s_hv_p9_entry.c | 13 +++++++++++-- arch/powerpc/kvm/powerpc.c | 6 ++++++ 4 files changed, 30 insertions(+), 12 deletions(-) -- 2.39.5
