VirtualBox

Changeset 24465 in vbox


Ignore:
Timestamp:
Nov 6, 2009 4:28:36 PM (15 years ago)
Author:
vboxsync
Message:

Respect the default value of PAE for pre 1.9 xml files.
Always write the PAE, VPID & nested paging settings to make it easier to change the defaults later on.

File:
1 edited

Legend:

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

    r24456 r24465  
    15471547            if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExVPID")))
    15481548                pelmCPUChild->getAttributeValue("enabled", hw.fVPID);
    1549             if ((pelmCPUChild = pelmHwChild->findChildElement("PAE")))
     1549
     1550            if (!(pelmCPUChild = pelmHwChild->findChildElement("PAE")))
     1551            {
     1552                /* The default for pre 3.1 was false, so we must respect that. */
     1553                if (m->sv < SettingsVersion_v1_9)
     1554                    hw.fPAE = false;
     1555            }
     1556            else
    15501557                pelmCPUChild->getAttributeValue("enabled", hw.fPAE);
     1558
    15511559            if ((pelmCPUChild = pelmHwChild->findChildElement("SyntheticCpu")))
    15521560                pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu);
     
    24242432        pelmHwVirtEx->setAttribute("exclusive", hw.fHardwareVirtExclusive);
    24252433
    2426     if (hw.fNestedPaging)
    2427         pelmCPU->createChild("HardwareVirtExNestedPaging")->setAttribute("enabled", hw.fNestedPaging);
    2428     if (hw.fVPID)
    2429         pelmCPU->createChild("HardwareVirtExVPID")->setAttribute("enabled", hw.fVPID);
    2430     if (hw.fPAE)
    2431         pelmCPU->createChild("PAE")->setAttribute("enabled", hw.fPAE);
     2434    pelmCPU->createChild("HardwareVirtExNestedPaging")->setAttribute("enabled", hw.fNestedPaging);
     2435    pelmCPU->createChild("HardwareVirtExVPID")->setAttribute("enabled", hw.fVPID);
     2436    pelmCPU->createChild("PAE")->setAttribute("enabled", hw.fPAE);
     2437
    24322438    if (hw.fSyntheticCpu)
    24332439        pelmCPU->createChild("SyntheticCpu")->setAttribute("enabled", hw.fSyntheticCpu);
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