Message ID | 20100615143134.GB9826@fermat.math.technion.ac.il (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- .before/arch/x86/kvm/vmx.c 2010-06-15 17:20:01.000000000 +0300 +++ .after/arch/x86/kvm/vmx.c 2010-06-15 17:20:01.000000000 +0300 @@ -4236,6 +4236,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 = {