]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Clear nested_run_pending if setting nested state fails
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 8 May 2019 18:04:32 +0000 (11:04 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:27:03 +0000 (21:27 +0200)
commitbed26557484fab4ed4237fa76d4a00a9660d4597
treea836a9222e1dec73eedd959631548e032e8a895b
parent35b74ba8388798fac03741acfde07a743176f37a
KVM: nVMX: Clear nested_run_pending if setting nested state fails

VMX's nested_run_pending flag is subtly consumed when stuffing state to
enter guest mode, i.e. needs to be set according before KVM knows if
setting guest state is successful.  If setting guest state fails, clear
the flag as a nested run is obviously not pending.

Reported-by: Aaron Lewis <aaronlewis@google.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c