Changeset 13785 in vbox for trunk/src/VBox
- Timestamp:
- Nov 4, 2008 1:11:37 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VM.cpp
r13784 r13785 470 470 */ 471 471 GVMMCREATEVMREQ CreateVMReq; 472 CreateVMReq.Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC;473 CreateVMReq.Hdr.cbReq = sizeof(CreateVMReq);474 CreateVMReq.pSession = pUVM->vm.s.pSession;475 CreateVMReq.pVMR0 = NIL_RTR0PTR;476 CreateVMReq.pVMR3 = NULL;477 CreateVMReq.cCPUs = cCPUs;472 CreateVMReq.Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC; 473 CreateVMReq.Hdr.cbReq = sizeof(CreateVMReq); 474 CreateVMReq.pSession = pUVM->vm.s.pSession; 475 CreateVMReq.pVMR0 = NIL_RTR0PTR; 476 CreateVMReq.pVMR3 = NULL; 477 CreateVMReq.cCPUs = cCPUs; 478 478 rc = SUPCallVMMR0Ex(NIL_RTR0PTR, VMMR0_DO_GVMM_CREATE_VM, 0, &CreateVMReq.Hdr); 479 479 if (RT_SUCCESS(rc)) … … 490 490 */ 491 491 pVM->pUVM = pUVM; 492 pVM->NativeThreadEMT = pVM->aCpu[0].hNativeThreadR3 = pUVM->vm.s.NativeThreadEMT; 492 pVM->NativeThreadEMT = pUVM->aCpu[0].vm.s.NativeThreadEMT; 493 494 for (unsigned i=0;i<pVM->cCPUs;i++) 495 { 496 pVM->aCpu[i].hNativeThread = pUVM->aCpu[i].vm.s.NativeThreadEMT; 497 Assert(pVM->aCpu[i].hNativeThread!= NIL_RTNATIVETHREAD); 498 } 493 499 494 500 /* -
trunk/src/VBox/VMM/VMEmt.cpp
r13782 r13785 215 215 vmR3DestroyFinalBitFromEMT(pUVM); 216 216 217 /* we don't reset ThreadEMT here because it's used in waiting. */218 217 pUVM->vm.s.NativeThreadEMT = NIL_RTNATIVETHREAD; 219 218 }
Note:
See TracChangeset
for help on using the changeset viewer.