Message ID | bug-106621-28872@https.bugzilla.kernel.org/ (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
https://bugzilla.kernel.org/show_bug.cgi?id=106621 Alexander E. Patrakov (patrakov@gmail.com) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |patrakov@gmail.com --- Comment #1 from Alexander E. Patrakov (patrakov@gmail.com) --- While trying to run an L2 VM in HyperV in KVM, I was able to get another potentially useful log message from Windows: Hypervisor launch failed; Processor does not support the minimum features required to run the hypervisor (MSR index 0x48B, allowed bits 0x2600000000, required bits 0xFB00000000). That's on linux-4.9.8.
https://bugzilla.kernel.org/show_bug.cgi?id=106621 --- Comment #2 from Alexander E. Patrakov (patrakov@gmail.com) --- in a Linux L1 guest, with "-enable-kvm -cpu host,-hypervisor,+vmx,kvm=off", "rdmsr 0x48b" returns fb00000000, but that's still not good enough for HyperV.
https://bugzilla.kernel.org/show_bug.cgi?id=106621 Paolo Bonzini (bonzini@gnu.org) changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bonzini@gnu.org Resolution|--- |CODE_FIX --- Comment #3 from Paolo Bonzini (bonzini@gnu.org) --- Will work in 4.10.
--- a/arch/x86/kvm/vmx.c 2015-10-25 02:39:47.000000000 +0100 +++ b/arch/x86/kvm/vmx.c 2015-10-26 13:35:51.894700786 +0100 @@ -2661,7 +2661,12 @@ case MSR_IA32_FEATURE_CONTROL: if (!nested_vmx_allowed(vcpu)) return 1; - msr_info->data = to_vmx(vcpu)->nested.msr_ia32_feature_control; + if (nested_vmx_allowed(vcpu)) { + //Set all 3 bits in 0x3a + msr_info->data = 5; + } else { + msr_info->data = to_vmx(vcpu)->nested.msr_ia32_feature_control; + } break; case MSR_IA32_VMX_BASIC ... MSR_IA32_VMX_VMFUNC: if (!nested_vmx_allowed(vcpu))