KVM: PPC: Book3S HV nestedv2: Invalidate RPT before deleting a guest
authorJordan Niethe <jniethe5@gmail.com>
Fri, 1 Dec 2023 13:26:06 +0000 (18:56 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 Dec 2023 12:33:07 +0000 (23:33 +1100)
commit7d370e1812b9a5f5cc68aaa5991bf7d31d8ff52c
treee5209e0d6ffd7095cf094da81c185ced82267368
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
KVM: PPC: Book3S HV nestedv2: Invalidate RPT before deleting a guest

An L0 must invalidate the L2's RPT during H_GUEST_DELETE if this has not
already been done. This is a slow operation that means H_GUEST_DELETE
must return H_BUSY multiple times before completing. Invalidating the
tables before deleting the guest so there is less work for the L0 to do.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231201132618.555031-2-vaibhav@linux.ibm.com
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_nested.c