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)
commitbc6134942dbbf31c25e9bd7c876be5da81c9e1ce
tree883797ada98b8affc79b9dc9752b86c6e1aad3ac
parenta2b9e6c1a35afcc0973acb72e591c714e78885ff
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