Skip to content
Commit 83bcacb1 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@redhat.com>
parent 82ca2d10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment