From: Avi Kivity Date: Mon, 25 Oct 2010 13:23:55 +0000 (+0200) Subject: KVM: Avoid double interrupt injection with vapic X-Git-Tag: v2.6.38-rc1~244^2~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83bcacb1a548d4d8df532376c981277761622bce;p=pandora-kernel.git KVM: Avoid double interrupt injection with vapic After an interrupt injection, the PPR changes, and we have to reflect that into the vapic. This causes a KVM_REQ_EVENT to be set, which causes the whole interrupt injection routine to be run again (harmlessly). Optimize by only setting KVM_REQ_EVENT if the ppr was lowered; otherwise there is no chance that a new injection is needed. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed