KVM: don't enter guest after SIPI was received by a CPU
authorGleb Natapov <gleb@qumranet.com>
Mon, 22 Sep 2008 11:28:53 +0000 (14:28 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:09 +0000 (14:25 +0200)
commitaf2152f5457448bd90cb019c108e0a85e716fdbe
tree49d04ee98da457e29be09b3143361212b982f898
parent9ea1de4ea4b04d5132eb74917ecea77dda13ce76
KVM: don't enter guest after SIPI was received by a CPU

The vcpu should process pending SIPI message before entering guest mode again.
kvm_arch_vcpu_runnable() returns true if the vcpu is in SIPI state, so
we can't call it here.

Signed-off-by: Gleb Natapov <gleb@qumranet.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c