VirtualBox

Changeset 92539 in vbox


Ignore:
Timestamp:
Nov 22, 2021 2:09:47 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148414
Message:

Main/MachineImpl: A couple of hacks for enabling VMMDev/Testing for VBoxBS_64 type guests. Simplifies setting up bootsector test VMs a lot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r92421 r92539  
    384384        for (ULONG slot = 0; slot < RT_ELEMENTS(mParallelPorts); ++slot)
    385385            mParallelPorts[slot]->i_applyDefaults();
     386
     387        /* Enable the VMMDev testing feature for bootsector VMs: */
     388        if (aOsType && aOsType->i_id() == "VBoxBS_64")
     389            mData->pMachineConfigFile->mapExtraDataItems["VBoxInternal/Devices/VMMDev/0/Config/TestingEnabled"] = "1";
    386390
    387391        /* At this point the changing of the current state modification
     
    1547315477        }
    1547415478    }
     15479
     15480    /* Enable the VMMDev testing feature for bootsector VMs: */
     15481    if (osTypeId == "VBoxBS_64")
     15482    {
     15483        rc = setExtraData("VBoxInternal/Devices/VMMDev/0/Config/TestingEnabled", "1");
     15484        if (FAILED(rc))
     15485            return rc;
     15486    }
     15487
    1547515488    return S_OK;
    1547615489}
Note: See TracChangeset for help on using the changeset viewer.

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