]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: vmx: Properly handle machine check during VM-entry
authorJim Mattson <jmattson@google.com>
Mon, 22 May 2017 16:48:33 +0000 (09:48 -0700)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Jul 2017 20:38:25 +0000 (22:38 +0200)
commit48ae0fb49b2e8380e60c5072f18005c8a98c6520
tree14c13d25db1a98fd417e0c8e4af0a29c8ef4157c
parent0bc48bea36d178aea9d7f83f66a1b397cec9db5c
kvm: vmx: Properly handle machine check during VM-entry

vmx_complete_atomic_exit should call kvm_machine_check for any
VM-entry failure due to a machine-check event. Such an exit should be
recognized solely by its basic exit reason (i.e. the low 16 bits of
the VMCS exit reason field). None of the other VMCS exit information
fields contain valid information when the VM-exit is due to "VM-entry
failure due to machine-check event".

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Xiao Guangrong <xiaoguangrong@tencent.com>
[Changed VM_EXIT_INTR_INFO condition to better describe its reason.]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c