VirtualBox

Changeset 44509 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 1, 2013 1:11:17 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83546
Message:

Document PIC and APIC callback method locking rules.

File:
1 edited

Legend:

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

    r44351 r44509  
    318318 *
    319319 * @remarks No-long-jump zone!!!
    320 */
     320 */
    321321VMMDECL(int) PDMApicGetTPR(PVMCPU pVCpu, uint8_t *pu8TPR, bool *pfPending)
    322322{
     
    324324    if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns))
    325325    {
     326        /*
     327         * Note! We don't acquire the PDM lock here as we're just reading
     328         *       information. Doing so causes massive contention as this
     329         *       function is called very often by each and every VCPU.
     330         */
    326331        Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR));
    327         /* We don't acquire the PDM lock here as we're just reading information. Doing so causes massive
    328          * contention as this function is called very often by each and every VCPU.
    329          */
    330332        *pu8TPR = pVM->pdm.s.Apic.CTX_SUFF(pfnGetTPR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu->idCpu);
    331333        if (pfPending)
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