OSDN Git Service

target/i386: disable VMX features if nested=0
authorYang Zhong <yang.zhong@intel.com>
Fri, 6 Dec 2019 07:11:11 +0000 (15:11 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Dec 2019 11:35:40 +0000 (12:35 +0100)
commit2605188240f939fa9ae9353f53a0985620b34769
tree10eacdea17c39e9a34dc9442387eb68a228ceb6b
parent1bdc319ab5d289ce6b822e06fb2b13666fd9278e
target/i386: disable VMX features if nested=0

If kvm does not support VMX feature by nested=0, the kvm_vmx_basic
can't get the right value from MSR_IA32_VMX_BASIC register, which
make qemu coredump when qemu do KVM_SET_MSRS.

The coredump info:
error: failed to set MSR 0x480 to 0x0
kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20191206071111.12128-1-yang.zhong@intel.com>
Reported-by: Catherine Ho <catherine.hecx@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c