VirtualBox

Changeset 45622 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Apr 18, 2013 9:49:05 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85125
Message:

Main: Introducing CPUPropertyType_LongMode + legacy band aid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r45138 r45622  
    17341734          fSyntheticCpu(false),
    17351735          fPAE(false),
     1736          enmLongMode(HC_ARCH_BITS == 64 ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled),
    17361737          cCPUs(1),
    17371738          fCpuHotPlug(false),
     
    18001801                  && (fSyntheticCpu             == h.fSyntheticCpu)
    18011802                  && (fPAE                      == h.fPAE)
     1803                  && (enmLongMode               == h.enmLongMode)
    18021804                  && (cCPUs                     == h.cCPUs)
    18031805                  && (fCpuHotPlug               == h.fCpuHotPlug)
     
    25372539                pelmCPUChild->getAttributeValue("enabled", hw.fPAE);
    25382540
     2541            bool fLongMode;
     2542            if (   (pelmCPUChild = pelmHwChild->findChildElement("LongMode"))
     2543                && pelmCPUChild->getAttributeValue("enabled", fLongMode) )
     2544                hw.enmLongMode = fLongMode ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled;
     2545            else
     2546                hw.enmLongMode = Hardware::LongMode_Legacy;
     2547
    25392548            if ((pelmCPUChild = pelmHwChild->findChildElement("SyntheticCpu")))
    25402549                pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu);
     
    37013710    pelmCPU->createChild("HardwareVirtExVPID")->setAttribute("enabled", hw.fVPID);
    37023711    pelmCPU->createChild("PAE")->setAttribute("enabled", hw.fPAE);
     3712    if (m->sv >= SettingsVersion_v1_14 && hw.enmLongMode != Hardware::LongMode_Legacy)
     3713        pelmCPU->createChild("LongMode")->setAttribute("enabled", hw.enmLongMode == Hardware::LongMode_Enabled);
    37033714
    37043715    if (hw.fSyntheticCpu)
     
    49905001    {
    49915002        // VirtualBox 4.3 adds default frontend setting.
    4992         if (!hardwareMachine.strDefaultFrontend.isEmpty())
     5003        if (   !hardwareMachine.strDefaultFrontend.isEmpty()
     5004            || hardwareMachine.enmLongMode != Hardware::LongMode_Legacy)
    49935005            m->sv = SettingsVersion_v1_14;
    49945006    }
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