]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: nVMX: Add "nested" module option to kvm_intel
authorNadav Har'El <nyh@il.ibm.com>
Wed, 25 May 2011 20:02:23 +0000 (23:02 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:09 +0000 (11:45 +0300)
commit801d342432190947928e18f893f073fd87cd8bdf
tree3967b58452246c2064741b0591fd076724c19bc7
parentb5c9ff731f3cee5a2f2d7154f48f8006b48eb66d
KVM: nVMX: Add "nested" module option to kvm_intel

This patch adds to kvm_intel a module option "nested". This option controls
whether the guest can use VMX instructions, i.e., whether we allow nested
virtualization. A similar, but separate, option already exists for the
SVM module.

This option currently defaults to 0, meaning that nested VMX must be
explicitly enabled by giving nested=1. When nested VMX matures, the default
should probably be changed to enable nested VMX by default - just like
nested SVM is currently enabled by default.

Signed-off-by: Nadav Har'El <nyh@il.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c