KVM: PPC: Book3S HV: Add a VM capability to enable nested virtualization
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 21 Sep 2018 10:02:01 +0000 (20:02 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 9 Oct 2018 05:14:47 +0000 (16:14 +1100)
commitaa069a996951f3e2e38437ef0316685a5893fc7e
tree40de54d39eeb75cb318b221a3d497a032ca72ab4
parent9d67121a4fce20e0f7f127d40cd824fbbf5297dc
KVM: PPC: Book3S HV: Add a VM capability to enable nested virtualization

With this, userspace can enable a KVM-HV guest to run nested guests
under it.

The administrator can control whether any nested guests can be run;
setting the "nested" module parameter to false prevents any guests
becoming nested hypervisors (that is, any attempt to enable the nested
capability on a guest will fail).  Guests which are already nested
hypervisors will continue to be so.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/powerpc.c
include/uapi/linux/kvm.h