KVM: PPC: Book3S HV Nested: Change nested guest lookup to use idr
authorNicholas Piggin <npiggin@gmail.com>
Sun, 23 Jan 2022 12:00:41 +0000 (22:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 May 2022 11:33:34 +0000 (21:33 +1000)
commitc0f00a18e2a8c350a9d263aaf9a2c8bc86caa1b0
tree4fbd9c7b0518c857477acdb14a228e24e4ea457c
parent6ba2a2924dcf6026de5078ba7025248a580d8bde
KVM: PPC: Book3S HV Nested: Change nested guest lookup to use idr

This removes the fixed sized kvm->arch.nested_guests array.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220123120043.3586018-5-npiggin@gmail.com
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/book3s_hv_nested.c