VirtualBox

Changeset 38325 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 5, 2011 2:11:58 PM (14 years ago)
Author:
vboxsync
Message:

VMM: Renamed VM::fRawR0Enabled and VM::fRawR3Enabled, inverting their meaning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r38324 r38325  
    112112     */
    113113    pVM->em.s.offVM = RT_OFFSETOF(VM, em.s);
    114     int rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "RawR3Enabled", &pVM->fRawR3Enabled);
    115     if (RT_FAILURE(rc))
    116         pVM->fRawR3Enabled = true;
    117     rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "RawR0Enabled", &pVM->fRawR0Enabled);
    118     if (RT_FAILURE(rc))
    119         pVM->fRawR0Enabled = true;
    120     Log(("EMR3Init: fRawR3Enabled=%d fRawR0Enabled=%d\n", pVM->fRawR3Enabled, pVM->fRawR0Enabled));
     114    bool fEnabled;
     115    int rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "RawR3Enabled", &fEnabled);
     116    pVM->fRecompileUser = RT_SUCCESS(rc) ? fEnabled : true;
     117    rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "RawR0Enabled", &fEnabled);
     118    pVM->fRecompileSupervisor = RT_SUCCESS(rc) ? fEnabled : true;
     119    Log(("EMR3Init: fRecompileUser=%RTbool fRecompileSupervisor=%RTbool\n", pVM->fRecompileUser, pVM->fRecompileSupervisor));
    121120
    122121    /*
     
    609608        {
    610609            case EMEXECPOLICY_RECOMPILE_RING0:
    611                 pVM->fRawR0Enabled = !pArgs->fEnforce;
     610                pVM->fRecompileSupervisor = !pArgs->fEnforce;
    612611                break;
    613612            case EMEXECPOLICY_RECOMPILE_RING3:
    614                 pVM->fRawR3Enabled = !pArgs->fEnforce;
     613                pVM->fRecompileUser = pArgs->fEnforce;
    615614                break;
    616615            default:
    617616                AssertFailedReturn(VERR_INVALID_PARAMETER);
    618617        }
    619         Log(("emR3SetExecutionPolicy: fRawR3Enabled=%RTbool fRawR0Enabled=%RTbool\n",
    620               pVM->fRawR3Enabled, pVM->fRawR0Enabled));
     618        Log(("emR3SetExecutionPolicy: fRecompileUser=%RTbool fRecompileSupervisor=%RTbool\n",
     619              pVM->fRecompileUser, pVM->fRecompileSupervisor));
    621620    }
    622621
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