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)
commit8196458b3fae497188122ded742c949f0986af30
tree103b203c928e87b11c163a202e0441edda2b5e8a
parent6a7757f33aff6de68280ba65942573aaa38b5766
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