VirtualBox

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


Ignore:
Timestamp:
Aug 29, 2010 8:41:54 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65324
Message:

Main: comments

File:
1 edited

Legend:

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

    r31818 r32063  
    4747 *
    4848 *   4) In the settings writer method, write the setting _only_ if the current settings
    49  *      version (stored in m->sv) is high enough. That is, for VirtualBox 3.3, write it
     49 *      version (stored in m->sv) is high enough. That is, for VirtualBox 4.0, write it
    5050 *      only if (m->sv >= SettingsVersion_v1_11).
    5151 */
     
    736736 *
    737737 * This is used in both MainConfigFile and MachineConfigFile since starting with
    738  * VirtualBox 3.3, we can have media registries in both.
     738 * VirtualBox 4.0, we can have media registries in both.
    739739 *
    740740 * For pre-1.4 files, this gets called with the <DiskRegistry> chunk instead.
     
    10291029 *
    10301030 * This is used in both MainConfigFile and MachineConfigFile since starting with
    1031  * VirtualBox 3.3, we can have media registries in both.
     1031 * VirtualBox 4.0, we can have media registries in both.
    10321032 *
    10331033 * @param elmParent
     
    17461746 * Public routine which returns true if this machine config file can have its
    17471747 * own media registry (which is true for settings version v1.11 and higher,
    1748  * i.e. files created by VirtualBox 3.3 and higher).
     1748 * i.e. files created by VirtualBox 4.0 and higher).
    17491749 * @return
    17501750 */
     
    22682268                pelmCPUChild->getAttributeValue("enabled", hw.fVPID);
    22692269            if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtForce")))
    2270                 pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirtForce);           
     2270                pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirtForce);
    22712271
    22722272            if (!(pelmCPUChild = pelmHwChild->findChildElement("PAE")))
     
    31243124                    else
    31253125                        machineUserData.enmFaultToleranceState = FaultToleranceState_Inactive;
    3126                 }               
     3126                }
    31273127                pelmMachineChild->getAttributeValue("port", machineUserData.uFaultTolerancePort);
    31283128                pelmMachineChild->getAttributeValue("address", machineUserData.strFaultToleranceAddress);
     
    31813181    if (hw.fLargePages)
    31823182        pelmCPU->createChild("HardwareVirtExLargePages")->setAttribute("enabled", hw.fLargePages);
    3183    
     3183
    31843184    if (m->sv >= SettingsVersion_v1_9)
    3185         pelmCPU->createChild("HardwareVirtForce")->setAttribute("enabled", hw.fHardwareVirtForce);   
     3185        pelmCPU->createChild("HardwareVirtForce")->setAttribute("enabled", hw.fHardwareVirtForce);
    31863186
    31873187    if (m->sv >= SettingsVersion_v1_10)
     
    39713971 *      be written, if present. This is not set when called from OVF because OVF
    39723972 *      has its own variant of a media registry. This flag is ignored unless the
    3973  *      settings version is at least v1.11 (VirtualBox 3.3).
     3973 *      settings version is at least v1.11 (VirtualBox 4.0).
    39743974 *
    39753975 *  --  BuildMachineXML_IncludeSnapshots: If set, descend into the snapshots tree
     
    41974197    if (m->sv < SettingsVersion_v1_11)
    41984198    {
    4199         // VirtualBox 3.3 adds HD audio, CPU priorities, fault tolerance and per-machine media registries
     4199        // VirtualBox 4.0 adds HD audio, CPU priorities, fault tolerance and per-machine media registries
    42004200        if (    hardwareMachine.audioAdapter.controllerType == AudioControllerType_HDA
    42014201             || hardwareMachine.ulCpuPriority != 100
     
    42364236                const AttachedDevice &att = *it2;
    42374237
    4238                 // Bandwidth limitations are new in VirtualBox 3.3 (1.11)
     4238                // Bandwidth limitations are new in VirtualBox 4.0 (1.11)
    42394239                if (    (m->sv < SettingsVersion_v1_11)
    42404240                     && (att.ulBandwidthLimit != 0)
     
    43164316               )
    43174317            {
    4318                 /* New in VirtualBox 3.3 */
     4318                /* New in VirtualBox 4.0 */
    43194319                m->sv = SettingsVersion_v1_11;
    43204320                break;
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