Changeset 5220 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 10, 2007 2:21:27 PM (17 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
r5219 r5220 476 476 pGVM->gvmm.s.VMPagesMemObj = NIL_RTR0MEMOBJ; 477 477 pGVM->gvmm.s.VMPagesMapObj = NIL_RTR0MEMOBJ; 478 pGVM->gvmm.s.HaltEvent Multi = NIL_RTSEMEVENTMULTI;478 pGVM->gvmm.s.HaltEvent = NIL_RTSEMEVENT; 479 479 } 480 480 … … 559 559 if (RT_SUCCESS(rc)) 560 560 { 561 if (pGVM->gvmm.s.HaltEvent Multi == NIL_RTSEMEVENTMULTI)562 { 563 rc = RTSemEvent MultiCreate(&pGVM->gvmm.s.HaltEventMulti);561 if (pGVM->gvmm.s.HaltEvent == NIL_RTSEMEVENT) 562 { 563 rc = RTSemEventCreate(&pGVM->gvmm.s.HaltEvent); 564 564 if (RT_FAILURE(rc)) 565 pGVM->gvmm.s.HaltEvent Multi = NIL_RTSEMEVENTMULTI;565 pGVM->gvmm.s.HaltEvent = NIL_RTSEMEVENT; 566 566 } 567 567 else … … 1129 1129 { 1130 1130 ASMAtomicXchgU64(&pCurGVM->gvmm.s.u64HaltExpire, 0); 1131 int rc = RTSemEvent MultiSignal(pCurGVM->gvmm.s.HaltEventMulti);1131 int rc = RTSemEventSignal(pCurGVM->gvmm.s.HaltEvent); 1132 1132 AssertRC(rc); 1133 1133 cWoken++; … … 1158 1158 { 1159 1159 ASMAtomicXchgU64(&pCurGVM->gvmm.s.u64HaltExpire, 0); 1160 int rc = RTSemEvent MultiSignal(pCurGVM->gvmm.s.HaltEventMulti);1160 int rc = RTSemEventSignal(pCurGVM->gvmm.s.HaltEvent); 1161 1161 AssertRC(rc); 1162 1162 cWoken++; … … 1177 1177 { 1178 1178 ASMAtomicXchgU64(&pCurGVM->gvmm.s.u64HaltExpire, 0); 1179 int rc = RTSemEvent MultiSignal(pCurGVM->gvmm.s.HaltEventMulti);1179 int rc = RTSemEventSignal(pCurGVM->gvmm.s.HaltEvent); 1180 1180 AssertRC(rc); 1181 1181 cWoken++; … … 1239 1239 1240 1240 uint32_t cMillies = (u64ExpireGipTime - u64Now) / 1000000; 1241 rc = RTSemEvent MultiWaitNoResume(pGVM->gvmm.s.HaltEventMulti, cMillies ? cMillies : 1);1241 rc = RTSemEventWaitNoResume(pGVM->gvmm.s.HaltEvent, cMillies ? cMillies : 1); 1242 1242 ASMAtomicXchgU64(&pGVM->gvmm.s.u64HaltExpire, 0); 1243 1243 if (rc == VERR_TIMEOUT) … … 1252 1252 RTSemFastMutexRelease(pGVMM->UsedLock); 1253 1253 } 1254 1255 /* Make sure false wake up calls (gvmmR0SchedDoWakeUps) cause us to spin. */1256 RTSemEventMultiReset(pGVM->gvmm.s.HaltEventMulti);1257 1254 1258 1255 return rc; … … 1299 1296 } 1300 1297 1301 int rc2 = RTSemEvent MultiSignal(pGVM->gvmm.s.HaltEventMulti);1298 int rc2 = RTSemEventSignal(pGVM->gvmm.s.HaltEvent); 1302 1299 AssertRC(rc2); 1303 1300 -
trunk/src/VBox/VMM/VMMR0/GVMMR0Internal.h
r5219 r5220 40 40 uint64_t volatile u64HaltExpire; 41 41 /** The event semaphore the EMT thread is blocking on. */ 42 RTSEMEVENT MULTI HaltEventMulti;42 RTSEMEVENT HaltEvent; 43 43 /** The APIC ID of the CPU that EMT was scheduled on the last time we checked. */ 44 44 uint8_t iCpuEmt;
Note:
See TracChangeset
for help on using the changeset viewer.