KVM: VMX: Prevent exit handler from running if emulating due to invalid state
authorAvi Kivity <avi@redhat.com>
Sun, 4 Jan 2009 22:53:19 +0000 (00:53 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:00 +0000 (11:03 +0200)
If we've just emulated an instruction, we won't have any valid exit
reason and associated information.

Fix by moving the clearing of the emulation_required flag to the exit handler.
This way the exit handler can notice that we've been emulating and abort
early.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c

Simple merge