From: Marcelo Tosatti Date: Fri, 6 Jun 2008 19:37:36 +0000 (-0300) Subject: KVM: close timer injection race window in __vcpu_run X-Git-Tag: v2.6.26-rc8~3^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06e05645661211b9eaadaf6344c335d2e80f0ba2;p=pandora-kernel.git KVM: close timer injection race window in __vcpu_run If a timer fires after kvm_inject_pending_timer_irqs() but before local_irq_disable() the code will enter guest mode and only inject such timer interrupt the next time an unrelated event causes an exit. It would be simpler if the timer->pending irq conversion could be done with IRQ's disabled, so that the above problem cannot happen. For now introduce a new vcpu requests bit to cancel guest entry. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed