VirtualBox

Changeset 105455 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 23, 2024 7:02:30 PM (6 months ago)
Author:
vboxsync
Message:

Main: Special API tweak for ARM host disabling x86-on-arm by default (set global VBoxInternal2/EnableX86OnArm extradata to 1 to enable).

File:
1 edited

Legend:

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

    r104753 r105455  
    10631063    };
    10641064    MY_VECTOR_ASSIGN_ARRAY(aSupportedPlatformArchitectures, s_aPlatformArchitectures);
     1065
     1066#ifdef VBOX_WITH_VIRT_ARMV8
     1067    Bstr bstrEnableX86OnArm;
     1068    HRESULT hrc =mParent->GetExtraData(Bstr("VBoxInternal2/EnableX86OnArm").raw(), bstrEnableX86OnArm.asOutParam());
     1069    if (FAILED(hrc) || !bstrEnableX86OnArm.equals("1"))
     1070    {
     1071        Assert(aSupportedPlatformArchitectures[0] == PlatformArchitecture_x86);
     1072        if (aSupportedPlatformArchitectures[0] == PlatformArchitecture_x86)
     1073            aSupportedPlatformArchitectures.erase(aSupportedPlatformArchitectures.begin());
     1074    }
     1075#endif
    10651076    return S_OK;
    10661077}
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