From: Marcelo Tosatti Date: Fri, 6 Jun 2008 19:37:35 +0000 (-0300) Subject: KVM: Fix race between timer migration and vcpu migration X-Git-Tag: v2.6.26-rc8~3^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4acf7e7abe45457e751525a2a4d5b693dfdd597;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed