commit | 83bcacb1a548d4d8df532376c981277761622bce | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Mon Oct 25 15:23:55 2010 +0200 |
committer | Avi Kivity <avi@redhat.com> | Wed Jan 12 11:23:36 2011 +0200 |
tree | dde9955df18fee353cd01419b625618b6e58cc23 | |
parent | 82ca2d108b493f7d916975805668bef2096f1147 [diff] |
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 <avi@redhat.com>