VirtualBox

Changeset 20654 in vbox


Ignore:
Timestamp:
Jun 17, 2009 9:31:56 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48746
Message:

Do not acquire the PDM lock in PDMApicGetTPR

File:
1 edited

Legend:

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

    r20056 r20654  
    258258    {
    259259        Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR));
    260         pdmLock(pVM);
     260        /* We don't acquire the PDM lock here as we're just reading information. Doing so causes massive
     261         * contention as this function is called very often by each and every VCPU.
     262         */
    261263        *pu8TPR = pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu->idCpu);
    262264        if (pfPending)
    263265            *pfPending = pVM->pdm.s.Apic.CTX_SUFF(pfnHasPendingIrq)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns));
    264         pdmUnlock(pVM);
    265266        return VINF_SUCCESS;
    266267    }
Note: See TracChangeset for help on using the changeset viewer.

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