]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: Reflect userspace hcalls to hash guests to support PR KVM
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 May 2021 09:07:49 +0000 (19:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:15 +0000 (22:12 +1000)
commitc004c1fa9b94caf332986978886e214c5352b054
treec670bf3c27c9ebc03fcf32b3002901d12cec5ca2
parent47c2a11864ced27f2f760023102e0bc4c3e51c91
KVM: PPC: Book3S HV P9: Reflect userspace hcalls to hash guests to support PR KVM

The reflection of sc 1 interrupts from guest PR=1 to the guest kernel is
required to support a hash guest running PR KVM where its guest is
making hcalls with sc 1.

In preparation for hash guest support, add this hcall reflection to the
P9 path. The P7/8 path does this in its realmode hcall handler
(sc_1_fast_return).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210528090752.3542186-30-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c