VirtualBox

Changeset 56719 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 1, 2015 5:06:06 AM (10 years ago)
Author:
vboxsync
Message:

tstVMREQ: mac fix (no raw-mode)

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r56287 r56719  
    11841184    UPDATERC();
    11851185
     1186    /*
     1187     * VMMDev.
     1188     */
     1189    rc = CFGMR3InsertNode(pDevices, "VMMDev", &pDev);
     1190    UPDATERC();
     1191    rc = CFGMR3InsertNode(pDev,     "0", &pInst);
     1192    UPDATERC();
     1193    rc = CFGMR3InsertNode(pInst,    "Config", &pCfg);
     1194    UPDATERC();
     1195    rc = CFGMR3InsertInteger(pInst, "Trusted",              1); /* boolean */
     1196    UPDATERC();
     1197    rc = CFGMR3InsertInteger(pCfg,  "RamSize",              128U * _1M);
     1198    UPDATERC();
    11861199
    11871200
  • trunk/src/VBox/VMM/testcase/tstVMREQ.cpp

    r56287 r56719  
    212212{
    213213    NOREF(pvUser);
    214     int rc = CFGMR3ConstructDefaultTree(pVM);
    215     if (RT_SUCCESS(rc))
    216     {
    217         /* Disable HM, otherwise it will fail on machines without unrestricted guest execution
    218          * because the allocation of HM_VTX_TOTAL_DEVHEAP_MEM will fail -- no VMMDev */
    219         PCFGMNODE pRoot = CFGMR3GetRoot(pVM);
    220         rc = CFGMR3InsertInteger(pRoot, "HMEnabled", false);
    221         if (RT_FAILURE(rc))
    222             RTPrintf("CFGMR3InsertInteger(pRoot,\"HMEnabled\",) -> %Rrc\n", rc);
    223     }
    224     return rc;
     214    return CFGMR3ConstructDefaultTree(pVM);
    225215}
    226216
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