From: Marcelo Tosatti Date: Tue, 4 May 2010 02:04:27 +0000 (-0300) Subject: KVM: x86: properly update ready_for_interrupt_injection X-Git-Tag: v2.6.35-rc1~436^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d86e469b60f9e1afed5c17a6e723c2c9c55ceb;p=pandora-kernel.git KVM: x86: properly update ready_for_interrupt_injection The recent changes to emulate string instructions without entering guest mode exposed a bug where pending interrupts are not properly reflected in ready_for_interrupt_injection. The result is that userspace overwrites a previously queued interrupt, when irqchip's are emulated in userspace. Fix by always updating state before returning to userspace. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed