]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Add VMX to list of supported cpuid features
authorNadav Har'El <nyh@il.ibm.com>
Wed, 25 May 2011 20:16:10 +0000 (23:16 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:19 +0000 (11:45 +0300)
commit7fee8e1eabf8d20d6f735da1d8f5fe27323969b6
treedd8ca0722d30e4639b3e73a33b05b4bb5ab0a373
parent6c9fb89196c68e8881b94835e423e41eae9c7da2
KVM: 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