Message ID | 201105252016.p4PKGAUG011383@rice.haifa.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- .before/arch/x86/kvm/vmx.c 2011-05-25 22:41:14.000000000 +0300 +++ .after/arch/x86/kvm/vmx.c 2011-05-25 22:41:14.000000000 +0300 @@ -6298,6 +6298,8 @@ static void vmx_cpuid_update(struct kvm_ static void vmx_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry) { + if (func == 1 && nested) + entry->ecx |= bit(X86_FEATURE_VMX); } /*
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> --- arch/x86/kvm/vmx.c | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html