nVMX: Add VMX to list of supported cpuid features
commit7e998753b20c36a769d93690cc992d1fda5b1168
authorNadav Har'El <nyh@il.ibm.com>
Wed, 25 May 2011 20:16:10 +0000 (25 23:16 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 31 May 2011 11:46:26 +0000 (31 08:46 -0300)
treecee3e7b99cd41385b9d1b3b8fc46f18f48161b37
parentbbd21b962774d3ec34bead2a581c2c273ce8906b
nVMX: Add VMX to list of supported cpuid features

If the "nested" module option is enabled, add the "VMX" CPU feature to the
list of CPU features KVM advertises with the KVM_GET_SUPPORTED_CPUID ioctl.

Qemu uses this ioctl, and intersects KVM's list with its own list of desired
cpu features (depending on the -cpu option given to qemu) to determine the
final list of features presented to the guest.

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