VirtualBox

Changeset 60476 in vbox


Ignore:
Timestamp:
Apr 13, 2016 2:42:43 PM (8 years ago)
Author:
vboxsync
Message:

VMM/APIC: Fix inverted condition while determining lowest-priority delivery mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r60475 r60476  
    618618                && apicIsEnabled(&pVM->aCpus[idCpu]))
    619619                APICPostInterrupt(&pVM->aCpus[idCpu], uVector, enmTriggerMode);
     620            else
     621                Log4(("APIC: apicSendIntr: No CPU found for lowest-priority delivery mode!\n"));
    620622            break;
    621623        }
     
    813815                uint8_t const u8Tpr      = pXApicPage->tpr.u8Tpr;         /* PAV */
    814816
    815                 /* If there is a tie for lowest priority, the local APIC with the highest ID is chosen.
    816                    See AMD spec. 16.6.2 "Lowest Priority Messages and Arbitration". */
    817                 if (u8LowestTpr <= u8Tpr)
     817                /*
     818                 * If there is a tie for lowest priority, the local APIC with the highest ID is chosen.
     819                 * Hence the use of "<=" in the check below.
     820                 * See AMD spec. 16.6.2 "Lowest Priority Messages and Arbitration".
     821                 */
     822                if (u8Tpr <= u8LowestTpr)
    818823                {
    819824                    u8LowestTpr    = u8Tpr;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette