VirtualBox

Changeset 60593 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Apr 20, 2016 11:02:38 AM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: Profiling and reduce 8 atomic ops to 4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/APIC.cpp

    r60543 r60593  
    11841184    ApicReg.pfnLocalInterruptR3     = APICLocalInterrupt;
    11851185    ApicReg.pfnGetTimerFreqR3       = APICGetTimerFreq;
    1186     if (pApic->fRZEnabled)
     1186
     1187    /*
     1188     * We always require R0 functionality (e.g. APICGetTpr() called by HMR0 VT-x/AMD-V code).
     1189     * Hence, 'fRZEnabled' strictly only applies to MMIO and MSR read/write handlers returning
     1190     * to ring-3. We still need other handlers like APICGetTpr() in ring-0 for now.
     1191     */
    11871192    {
    11881193        ApicReg.pszGetInterruptRC   = "APICGetInterrupt";
     
    12641269            pApicCpu->pTimerR0 = TMTimerR0Ptr(pApicCpu->pTimerR3);
    12651270            pApicCpu->pTimerRC = TMTimerRCPtr(pApicCpu->pTimerR3);
    1266 #if 0
    1267             rc = PDMR3CritSectInit(pVM, &pApicCpu->TimerCritSect, RT_SRC_POS, pApicCpu->szTimerDesc);
    1268             AssertRCReturn(rc, rc);
    1269             TMR3TimerSetCritSect(pApicCpu->pTimerR3, &pApicCpu->TimerCritSect);
    1270 #endif
    12711271        }
    12721272        else
     
    13321332        APIC_PROF_COUNTER(&pApicCpu->StatUpdatePendingIntrs, "Profiling of APICUpdatePendingInterrupts",
    13331333                          "/PROF/CPU%d/APIC/UpdatePendingInterrupts");
    1334         APIC_PROF_COUNTER(&pApicCpu->StatPostInterrupt, "Profiling of APICPostInterrupt", "/PROF/CPU%d/APIC/PostInterrupt");
    1335     }
     1334        APIC_PROF_COUNTER(&pApicCpu->StatPostIntr, "Profiling of APICPostInterrupt", "/PROF/CPU%d/APIC/PostInterrupt");
     1335
     1336        APIC_REG_COUNTER(&pApicCpu->StatPostIntrAlreadyPending,  "Number of times an interrupt is already pending.",
     1337                         "/Devices/APIC/%u/PostInterruptAlreadyPending");
     1338    }
     1339# undef APIC_PROF_COUNTER
    13361340# undef APIC_REG_ACCESS_COUNTER
    13371341#endif
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