Marcelo Tosatti d4acf7e7ab KVM: Fix race between timer migration and vcpu migration
A guest vcpu instance can be scheduled to a different physical CPU
between the test for KVM_REQ_MIGRATE_TIMER and local_irq_disable().

If that happens, the timer will only be migrated to the current pCPU on
the next exit, meaning that guest LAPIC timer event can be delayed until
a host interrupt is triggered.

Fix it by cancelling guest entry if any vcpu request is pending.  This
has the side effect of nicely consolidating vcpu->requests checks.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-06-24 12:16:52 +03:00
..
2008-06-20 16:46:10 -07:00
2008-05-16 17:22:20 -04:00
2008-05-16 17:22:20 -04:00
2008-06-09 16:49:43 +09:00
2008-06-03 15:21:21 -07:00
2008-05-16 17:22:20 -04:00
2008-04-29 08:06:11 -07:00