KVM: Timer event should not unconditionally unhalt vcpu.
authorGleb Natapov <gleb@redhat.com>
Mon, 23 Mar 2009 13:11:44 +0000 (15:11 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:33 +0000 (11:48 +0300)
commit09cec754885f900f6aab23801878c0cd217ee1d6
tree3f634b6993af33914b031421e23db67744b84a9f
parent089d034e0c4538d2436512fa64782b91008d4a7c
KVM: Timer event should not unconditionally unhalt vcpu.

Currently timer events are processed before entering guest mode. Move it
to main vcpu event loop since timer events should be processed even while
vcpu is halted.  Timer may cause interrupt/nmi to be injected and only then
vcpu will be unhalted.

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