KVM: PPC: Book3S HV: Nested support in H_RPT_INVALIDATE
authorBharata B Rao <bharata@linux.ibm.com>
Mon, 21 Jun 2021 08:50:01 +0000 (14:20 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 22 Jun 2021 13:35:37 +0000 (23:35 +1000)
commit53324b51c5eee22d420a2df68b1820d929fa90f3
tree0c0c43b9af5747df7400aef5d1a65203bcafe168
parentf0c6fbbb90504fb7e9dbf0865463d3c2b4de49e5
KVM: PPC: Book3S HV: Nested support in H_RPT_INVALIDATE

Enable support for process-scoped invalidations from nested
guests and partition-scoped invalidations for nested guests.

Process-scoped invalidations for any level of nested guests
are handled by implementing H_RPT_INVALIDATE handler in the
nested guest exit path in L0.

Partition-scoped invalidation requests are forwarded to the
right nested guest, handled there and passed down to L0
for eventual handling.

Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
[aneesh: Nested guest partition-scoped invalidation changes]
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
[mpe: Squash in fixup patch]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210621085003.904767-5-bharata@linux.ibm.com
arch/powerpc/include/asm/book3s/64/tlbflush-radix.h
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_nested.c
arch/powerpc/mm/book3s64/radix_tlb.c