KVM: lapic: do not set KVM_REQ_EVENT unnecessarily on PPR update
On PPR update, we set KVM_REQ_EVENT unconditionally anytime PPR is lowered. But we can take into account IRR here already. Reviewed-by: Roman Kagan <rkagan@virtuozzo.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b3c045d332
commit
26fbbee581
|
@ -607,7 +607,8 @@ static void apic_update_ppr(struct kvm_lapic *apic)
|
||||||
{
|
{
|
||||||
u32 ppr;
|
u32 ppr;
|
||||||
|
|
||||||
if (__apic_update_ppr(apic, &ppr))
|
if (__apic_update_ppr(apic, &ppr) &&
|
||||||
|
apic_has_interrupt_for_ppr(apic, ppr) != -1)
|
||||||
kvm_make_request(KVM_REQ_EVENT, apic->vcpu);
|
kvm_make_request(KVM_REQ_EVENT, apic->vcpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue