VirtualBox

Changeset 23553 in vbox


Ignore:
Timestamp:
Oct 5, 2009 11:38:47 AM (15 years ago)
Author:
vboxsync
Message:

More assertions

Location:
trunk/src/VBox/VMM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r23476 r23553  
    433433        int    rc;
    434434
    435         rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.StatSpinPoke, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, "Profiling of VMXR0RunGuestCode entry",
     435        rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.StatPoke, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, "Profiling of RTMpPokeCpu",
     436                             "/PROF/HWACCM/CPU%d/Poke", i);
     437        AssertRC(rc);
     438        rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.StatSpinPoke, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, "Profiling of poke wait",
    436439                             "/PROF/HWACCM/CPU%d/PokeWait", i);
    437440        AssertRC(rc);
    438         rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.StatSpinPokeFailed, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, "Profiling of VMXR0RunGuestCode entry",
     441        rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.StatSpinPokeFailed, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, "Profiling of poke wait when RTMpPokeCpu fails",
    439442                             "/PROF/HWACCM/CPU%d/PokeWaitFailed", i);
    440443        AssertRC(rc);
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r23476 r23553  
    769769    STAMPROFILEADV          StatWorldSwitch3264;
    770770#endif
     771    STAMPROFILEADV          StatPoke;
    771772    STAMPROFILEADV          StatSpinPoke;
    772773    STAMPROFILEADV          StatSpinPokeFailed;
  • trunk/src/VBox/VMM/VMMAll/HWACCMAll.cpp

    r23383 r23553  
    123123    uint32_t cWorldSwitchExit = pVCpu->hwaccm.s.cWorldSwitchExit;
    124124
     125    STAM_PROFILE_ADV_START(&pVCpu->hwaccm.s.StatPoke, x);
    125126    int rc = RTMpPokeCpu(idHostCpu);
     127    STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatPoke, x);
    126128    /* Not implemented on some platforms (Darwin, Linux kernel < 2.6.19); fall back to a less efficient implementation (broadcast). */
    127129    if (rc == VERR_NOT_SUPPORTED)
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r23517 r23553  
    190190        pVCpu->hwaccm.s.svm.pVMCBHost     = RTR0MemObjAddress(pVCpu->hwaccm.s.svm.pMemObjVMCBHost);
    191191        pVCpu->hwaccm.s.svm.pVMCBHostPhys = RTR0MemObjGetPagePhysAddr(pVCpu->hwaccm.s.svm.pMemObjVMCBHost, 0);
     192        Assert(pVCpu->hwaccm.s.svm.pVMCBHostPhys < _4G);
    192193        ASMMemZeroPage(pVCpu->hwaccm.s.svm.pVMCBHost);
    193194
     
    199200        pVCpu->hwaccm.s.svm.pVMCB     = RTR0MemObjAddress(pVCpu->hwaccm.s.svm.pMemObjVMCB);
    200201        pVCpu->hwaccm.s.svm.pVMCBPhys = RTR0MemObjGetPagePhysAddr(pVCpu->hwaccm.s.svm.pMemObjVMCB, 0);
     202        Assert(pVCpu->hwaccm.s.svm.pVMCBPhys < _4G);
    201203        ASMMemZeroPage(pVCpu->hwaccm.s.svm.pVMCB);
    202204
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