Changeset 31407 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Aug 5, 2010 1:36:39 PM (14 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
r31326 r31407 588 588 pGVM->hSelf = iHandle; 589 589 pGVM->pVM = NULL; 590 pGVM->cCpus = cCpus; 590 pGVM->cCpus = cCpus; 591 591 592 592 gvmmR0InitPerVMData(pGVM); … … 640 640 for (uint32_t i = 0; i < cCpus; i++) 641 641 { 642 pVM->aCpus[i].pVMR0 = pVM; 643 pVM->aCpus[i].pVMR3 = pVM->pVMR3; 644 pVM->aCpus[i].idHostCpu = NIL_RTCPUID; 642 pVM->aCpus[i].pVMR0 = pVM; 643 pVM->aCpus[i].pVMR3 = pVM->pVMR3; 644 pVM->aCpus[i].idHostCpu = NIL_RTCPUID; 645 pVM->aCpus[i].hNativeThreadR0 = NIL_RTNATIVETHREAD; 645 646 } 646 647 … … 656 657 AssertRC(rc); 657 658 658 pHandle->pVM = pVM; 659 pHandle->pGVM = pGVM; 660 pHandle->hEMT0 = hEMT0; 661 pHandle->ProcId = ProcId; 662 pGVM->pVM = pVM; 663 pGVM->aCpus[0].hEMT = hEMT0; 659 pHandle->pVM = pVM; 660 pHandle->pGVM = pGVM; 661 pHandle->hEMT0 = hEMT0; 662 pHandle->ProcId = ProcId; 663 pGVM->pVM = pVM; 664 pGVM->aCpus[0].hEMT = hEMT0; 665 pVM->aCpus[0].hNativeThreadR0 = hEMT0; 664 666 pGVMM->cEMTs += cCpus; 665 667 … … 1104 1106 return rc; 1105 1107 1106 AssertReturn(idCpu < p VM->cCpus, VERR_INVALID_CPU_ID);1108 AssertReturn(idCpu < pGVM->cCpus, VERR_INVALID_CPU_ID); 1107 1109 AssertReturn(pGVM->aCpus[idCpu].hEMT == NIL_RTNATIVETHREAD, VERR_ACCESS_DENIED); 1108 1109 pGVM->aCpus[idCpu].hEMT = RTThreadNativeSelf(); 1110 Assert(pGVM->cCpus == pVM->cCpus); 1111 Assert(pVM->aCpus[idCpu].hNativeThreadR0 == NIL_RTNATIVETHREAD); 1112 1113 pVM->aCpus[idCpu].hNativeThreadR0 = pGVM->aCpus[idCpu].hEMT = RTThreadNativeSelf(); 1114 1110 1115 return VINF_SUCCESS; 1111 1116 } -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r31369 r31407 964 964 965 965 PVMCPU pVCpu = &pVM->aCpus[idCpu]; 966 967 /* Initialize the r0 native thread handle on the fly. */ 968 if (pVCpu->hNativeThreadR0 == NIL_RTNATIVETHREAD) 969 pVCpu->hNativeThreadR0 = RTThreadNativeSelf(); 966 Assert(pVCpu->hNativeThreadR0 == RTThreadNativeSelf()); 970 967 971 968 # ifdef DEBUG_sandervl
Note:
See TracChangeset
for help on using the changeset viewer.