kvm: x86: fix setting IA32_FEATURE_CONTROL with nested VMX disabled
authorLiu Jinsong <jinsong.liu@intel.com>
Mon, 19 Aug 2013 01:33:30 +0000 (09:33 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2013 16:37:17 +0000 (18:37 +0200)
commitdf67696e97d3edd0cb1683bf2eb3b3236bd9a5ed
tree38dd84deff8fb4f7a7c2cf57fc461826fb2c1687
parentca916d3729564d0eb3c2374a96903f7e8aced8a7
kvm: x86: fix setting IA32_FEATURE_CONTROL with nested VMX disabled

This patch is to fix the bug https://bugs.launchpad.net/qemu-kvm/+bug/1207623

IA32_FEATURE_CONTROL is pointless if not expose VMX or SMX bits to
cpuid.1.ecx of vcpu. Current qemu-kvm will error return when kvm_put_msrs
or kvm_get_msrs.

Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/kvm.c