Changeset 23553 in vbox
- Timestamp:
- Oct 5, 2009 11:38:47 AM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
-
HWACCM.cpp (modified) (1 diff)
-
HWACCMInternal.h (modified) (1 diff)
-
VMMAll/HWACCMAll.cpp (modified) (1 diff)
-
VMMR0/HWSVMR0.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r23476 r23553 433 433 int rc; 434 434 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", 436 439 "/PROF/HWACCM/CPU%d/PokeWait", i); 437 440 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", 439 442 "/PROF/HWACCM/CPU%d/PokeWaitFailed", i); 440 443 AssertRC(rc); -
trunk/src/VBox/VMM/HWACCMInternal.h
r23476 r23553 769 769 STAMPROFILEADV StatWorldSwitch3264; 770 770 #endif 771 STAMPROFILEADV StatPoke; 771 772 STAMPROFILEADV StatSpinPoke; 772 773 STAMPROFILEADV StatSpinPokeFailed; -
trunk/src/VBox/VMM/VMMAll/HWACCMAll.cpp
r23383 r23553 123 123 uint32_t cWorldSwitchExit = pVCpu->hwaccm.s.cWorldSwitchExit; 124 124 125 STAM_PROFILE_ADV_START(&pVCpu->hwaccm.s.StatPoke, x); 125 126 int rc = RTMpPokeCpu(idHostCpu); 127 STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatPoke, x); 126 128 /* Not implemented on some platforms (Darwin, Linux kernel < 2.6.19); fall back to a less efficient implementation (broadcast). */ 127 129 if (rc == VERR_NOT_SUPPORTED) -
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r23517 r23553 190 190 pVCpu->hwaccm.s.svm.pVMCBHost = RTR0MemObjAddress(pVCpu->hwaccm.s.svm.pMemObjVMCBHost); 191 191 pVCpu->hwaccm.s.svm.pVMCBHostPhys = RTR0MemObjGetPagePhysAddr(pVCpu->hwaccm.s.svm.pMemObjVMCBHost, 0); 192 Assert(pVCpu->hwaccm.s.svm.pVMCBHostPhys < _4G); 192 193 ASMMemZeroPage(pVCpu->hwaccm.s.svm.pVMCBHost); 193 194 … … 199 200 pVCpu->hwaccm.s.svm.pVMCB = RTR0MemObjAddress(pVCpu->hwaccm.s.svm.pMemObjVMCB); 200 201 pVCpu->hwaccm.s.svm.pVMCBPhys = RTR0MemObjGetPagePhysAddr(pVCpu->hwaccm.s.svm.pMemObjVMCB, 0); 202 Assert(pVCpu->hwaccm.s.svm.pVMCBPhys < _4G); 201 203 ASMMemZeroPage(pVCpu->hwaccm.s.svm.pVMCB); 202 204
Note:
See TracChangeset
for help on using the changeset viewer.

