Message ID | 201010171004.o9HA4ZYE029286@rice.haifa.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- .before/arch/x86/kvm/vmx.c 2010-10-17 11:52:00.000000000 +0200 +++ .after/arch/x86/kvm/vmx.c 2010-10-17 11:52:00.000000000 +0200 @@ -4271,6 +4271,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); } static struct kvm_x86_ops vmx_x86_ops = {