]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: Don't set vmcs12 to "launched" when VMLAUNCH fails
authorJim Mattson <jmattson@google.com>
Thu, 6 Jul 2017 23:33:05 +0000 (16:33 -0700)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Jul 2017 16:41:10 +0000 (18:41 +0200)
commit7cdc2d62f9cce8a02eb2a5fbfca6813f04189487
treeb1c982322d705fe9fad56a85e069199d5b4dc8d1
parent8c61af9ebc016180507b246c875217e188be6eca
kvm: nVMX: Don't set vmcs12 to "launched" when VMLAUNCH fails

The VMCS launch state is not set to "launched" unless the VMLAUNCH
actually succeeds. VMLAUNCH failure includes VM-exits with bit 31 set.

Note that this change does not address the general problem that a
failure to launch/resume vmcs02 (i.e. vmx->fail) is not handled
correctly.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c