KVM: nVMX: Amend nested_run_pending logic
authorGleb Natapov <gleb@redhat.com>
Wed, 25 Sep 2013 09:51:33 +0000 (12:51 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Sep 2013 07:14:23 +0000 (09:14 +0200)
commite0b890d35cdff506b72129b55a166d22fc9bfa64
tree103b203c928e87b11c163a202e0441edda2b5e8a
parent6a3f95a6b04cd5efaa45269e453ef30b8680062e
KVM: nVMX: Amend nested_run_pending logic

EXIT_REASON_VMLAUNCH/EXIT_REASON_VMRESUME exit does not mean that nested
VM will actually run during next entry. Move setting nested_run_pending
closer to vmentry emulation code and move its clearing close to vmexit to
minimize amount of code that will erroneously run with nested_run_pending
set.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c