KVM: Move kvm_guest_exit() after local_irq_enable()
commit0552f73b9a81d39d50b71a5c06cf36efff80b6fd
authorLaurent Vivier <Laurent.Vivier@bull.net>
Thu, 18 Oct 2007 13:19:01 +0000 (18 15:19 +0200)
committerAvi Kivity <avi@qumranet.com>
Mon, 22 Oct 2007 10:03:29 +0000 (22 12:03 +0200)
tree28a9eacbaa6c76a24eb0c019cc919aab5180aab7
parent4e62417bf317504c0b85e0d7abd236f334f54eaf
KVM: Move kvm_guest_exit() after local_irq_enable()

We need to make sure that the timer interrupt happens before we clear
PF_VCPU, so the accounting code actually sees guest mode.

http://lkml.org/lkml/2007/10/15/114

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c