]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nested VMX: disable perf cpuid reporting
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 18 Sep 2014 21:24:57 +0000 (18:24 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Sep 2014 12:07:50 +0000 (14:07 +0200)
commit7476e52f94c13c327569e327c6ae5d34151f2c2d
tree883797ada98b8affc79b9dc9752b86c6e1aad3ac
parent9a01da966fa56c4cbd57a5b1df5723e38b2d3b5d
KVM: nested VMX: disable perf cpuid reporting

Initilization of L2 guest with -cpu host, on L1 guest with -cpu host
triggers:

(qemu) KVM: entry failed, hardware error 0x7
...
nested_vmx_run: VMCS MSR_{LOAD,STORE} unsupported

Nested VMX MSR load/store support is not sufficient to
allow perf for L2 guest.

Until properly fixed, trap CPUID and disable function 0xA.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/vmx.c