VirtualBox

Changeset 101069 in vbox


Ignore:
Timestamp:
Sep 8, 2023 2:38:23 PM (15 months ago)
Author:
vboxsync
Message:

Main: Override the platform architecture in IVirtualBox::createMachine(), to only allow same-same architectures for now. See comment for details. bugref:10384

File:
1 edited

Legend:

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

    r101035 r101069  
    21252125                     aSettingsFile.c_str(), aName.c_str(), aArchitecture, aOsTypeId.c_str(), aFlags.c_str()));
    21262126
     2127#if 1
     2128    /**
     2129     * We only allow same-same platform architectures (x86 VMs for x86 hosts, for instance) for now.
     2130     *
     2131     * This might change in the future, but for now we simply overwrite the architecture the caller handed-in
     2132     * with the host architecture.
     2133     */
     2134    aArchitecture = PlatformProperties::s_getHostPlatformArchitecture();
     2135# ifdef DEBUG_andy
     2136    aArchitecture = PlatformArchitecture_ARM; /** Testing stuff. */
     2137# endif
     2138#endif
     2139
    21272140    StringsList llGroups;
    21282141    HRESULT hrc = i_convertMachineGroups(aGroups, &llGroups);
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