Changeset 31326 in vbox for trunk/src/VBox/VMM/VM.cpp
- Timestamp:
- Aug 3, 2010 9:56:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VM.cpp
r30473 r31326 561 561 AssertRelease(pVM->pSession == pUVM->vm.s.pSession); 562 562 AssertRelease(pVM->cCpus == cCpus); 563 AssertRelease(pVM->uCpuPriority == 100); 563 564 AssertRelease(pVM->offVMCPU == RT_UOFFSETOF(VM, aCpus)); 564 565 … … 589 590 if (RT_SUCCESS(rc)) 590 591 { 591 rc = CFGMR3QueryBoolDef(CFGMR3GetRoot(pVM), "HwVirtExtForced", &pVM->fHwVirtExtForced, false); 592 PCFGMNODE pRoot = CFGMR3GetRoot(pVM); 593 rc = CFGMR3QueryBoolDef(pRoot, "HwVirtExtForced", &pVM->fHwVirtExtForced, false); 592 594 if (RT_SUCCESS(rc) && pVM->fHwVirtExtForced) 593 595 pVM->fHWACCMEnabled = true; … … 599 601 if (psz && !strcmp(psz, "fake")) 600 602 { 601 CFGMR3RemoveValue( CFGMR3GetRoot(pVM), "RawR3Enabled");602 CFGMR3InsertInteger( CFGMR3GetRoot(pVM), "RawR3Enabled", 0);603 CFGMR3RemoveValue( CFGMR3GetRoot(pVM), "RawR0Enabled");604 CFGMR3InsertInteger( CFGMR3GetRoot(pVM), "RawR0Enabled", 0);603 CFGMR3RemoveValue(pRoot, "RawR3Enabled"); 604 CFGMR3InsertInteger(pRoot, "RawR3Enabled", 0); 605 CFGMR3RemoveValue(pRoot, "RawR0Enabled"); 606 CFGMR3InsertInteger(pRoot, "RawR0Enabled", 0); 605 607 } 606 608 … … 611 613 { 612 614 uint32_t cCPUsCfg; 613 rc = CFGMR3QueryU32Def( CFGMR3GetRoot(pVM), "NumCPUs", &cCPUsCfg, 1);615 rc = CFGMR3QueryU32Def(pRoot, "NumCPUs", &cCPUsCfg, 1); 614 616 AssertLogRelMsgRC(rc, ("Configuration error: Querying \"NumCPUs\" as integer failed, rc=%Rrc\n", rc)); 615 617 if (RT_SUCCESS(rc) && cCPUsCfg != cCpus) … … 622 624 if (RT_SUCCESS(rc)) 623 625 { 626 rc = CFGMR3QueryU32Def(pRoot, "CpuPriority", &pVM->uCpuPriority, 100); 627 AssertLogRelMsgRC(rc, ("Configuration error: Querying \"CpuPriority\" as integer failed, rc=%Rrc\n", rc)); 628 624 629 /* 625 630 * Init the ring-3 components and ring-3 per cpu data, finishing it off
Note:
See TracChangeset
for help on using the changeset viewer.