VirtualBox

Changeset 31326 in vbox for trunk/src/VBox/VMM/VM.cpp


Ignore:
Timestamp:
Aug 3, 2010 9:56:22 AM (14 years ago)
Author:
vboxsync
Message:

Pass on cpu priority property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VM.cpp

    r30473 r31326  
    561561        AssertRelease(pVM->pSession == pUVM->vm.s.pSession);
    562562        AssertRelease(pVM->cCpus == cCpus);
     563        AssertRelease(pVM->uCpuPriority == 100);
    563564        AssertRelease(pVM->offVMCPU == RT_UOFFSETOF(VM, aCpus));
    564565
     
    589590        if (RT_SUCCESS(rc))
    590591        {
    591             rc = CFGMR3QueryBoolDef(CFGMR3GetRoot(pVM), "HwVirtExtForced", &pVM->fHwVirtExtForced, false);
     592            PCFGMNODE pRoot = CFGMR3GetRoot(pVM);
     593            rc = CFGMR3QueryBoolDef(pRoot, "HwVirtExtForced", &pVM->fHwVirtExtForced, false);
    592594            if (RT_SUCCESS(rc) && pVM->fHwVirtExtForced)
    593595                pVM->fHWACCMEnabled = true;
     
    599601            if (psz && !strcmp(psz, "fake"))
    600602            {
    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);
    605607            }
    606608
     
    611613            {
    612614                uint32_t cCPUsCfg;
    613                 rc = CFGMR3QueryU32Def(CFGMR3GetRoot(pVM), "NumCPUs", &cCPUsCfg, 1);
     615                rc = CFGMR3QueryU32Def(pRoot, "NumCPUs", &cCPUsCfg, 1);
    614616                AssertLogRelMsgRC(rc, ("Configuration error: Querying \"NumCPUs\" as integer failed, rc=%Rrc\n", rc));
    615617                if (RT_SUCCESS(rc) && cCPUsCfg != cCpus)
     
    622624            if (RT_SUCCESS(rc))
    623625            {
     626                rc = CFGMR3QueryU32Def(pRoot, "CpuPriority", &pVM->uCpuPriority, 100);
     627                AssertLogRelMsgRC(rc, ("Configuration error: Querying \"CpuPriority\" as integer failed, rc=%Rrc\n", rc));
     628
    624629                /*
    625630                 * Init the ring-3 components and ring-3 per cpu data, finishing it off
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette