[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/hvm: remove duplicate vlapic_find_highest_isr() calls
commit 032c2208ece1774b6b176330d144edc697e2ce61 Author: Paul Durrant <paul.durrant@xxxxxxxxxx> AuthorDate: Fri Dec 7 13:13:02 2018 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Mon Dec 10 11:27:37 2018 +0000 x86/hvm: remove duplicate vlapic_find_highest_isr() calls 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@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/hvm/vlapic.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/hvm/vlapic.c b/xen/arch/x86/hvm/vlapic.c index 1f58b36499..d318f3441a 100644 --- a/xen/arch/x86/hvm/vlapic.c +++ b/xen/arch/x86/hvm/vlapic.c @@ -1257,18 +1257,15 @@ int vlapic_has_pending_irq(struct vcpu *v) !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 -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |