When viridian APIC assist is active, the code in vlapic_has_pending_irq()
may end up re-calling vlapic_find_highest_isr() after emulating an EOI
whereas simply moving the call after the EOI emulation removes the need
for this duplication.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
!nestedhvm_vcpu_in_guestmode(v) )
return irr;
- isr = vlapic_find_highest_isr(vlapic);
-
/*
* If APIC assist was set then an EOI may have been avoided.
* If so, we need to emulate the EOI here before comparing ISR
* with IRR.
*/
if ( viridian_apic_assist_completed(v) )
- {
vlapic_EOI_set(vlapic);
- isr = vlapic_find_highest_isr(vlapic);
- }
+
+ isr = vlapic_find_highest_isr(vlapic);
/*
* The specification says that if APIC assist is set and a