Changeset 32063 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Aug 29, 2010 8:41:54 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 65324
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r31818 r32063 47 47 * 48 48 * 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 it49 * version (stored in m->sv) is high enough. That is, for VirtualBox 4.0, write it 50 50 * only if (m->sv >= SettingsVersion_v1_11). 51 51 */ … … 736 736 * 737 737 * 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. 739 739 * 740 740 * For pre-1.4 files, this gets called with the <DiskRegistry> chunk instead. … … 1029 1029 * 1030 1030 * 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. 1032 1032 * 1033 1033 * @param elmParent … … 1746 1746 * Public routine which returns true if this machine config file can have its 1747 1747 * own media registry (which is true for settings version v1.11 and higher, 1748 * i.e. files created by VirtualBox 3.3and higher).1748 * i.e. files created by VirtualBox 4.0 and higher). 1749 1749 * @return 1750 1750 */ … … 2268 2268 pelmCPUChild->getAttributeValue("enabled", hw.fVPID); 2269 2269 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtForce"))) 2270 pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirtForce); 2270 pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirtForce); 2271 2271 2272 2272 if (!(pelmCPUChild = pelmHwChild->findChildElement("PAE"))) … … 3124 3124 else 3125 3125 machineUserData.enmFaultToleranceState = FaultToleranceState_Inactive; 3126 } 3126 } 3127 3127 pelmMachineChild->getAttributeValue("port", machineUserData.uFaultTolerancePort); 3128 3128 pelmMachineChild->getAttributeValue("address", machineUserData.strFaultToleranceAddress); … … 3181 3181 if (hw.fLargePages) 3182 3182 pelmCPU->createChild("HardwareVirtExLargePages")->setAttribute("enabled", hw.fLargePages); 3183 3183 3184 3184 if (m->sv >= SettingsVersion_v1_9) 3185 pelmCPU->createChild("HardwareVirtForce")->setAttribute("enabled", hw.fHardwareVirtForce); 3185 pelmCPU->createChild("HardwareVirtForce")->setAttribute("enabled", hw.fHardwareVirtForce); 3186 3186 3187 3187 if (m->sv >= SettingsVersion_v1_10) … … 3971 3971 * be written, if present. This is not set when called from OVF because OVF 3972 3972 * 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). 3974 3974 * 3975 3975 * -- BuildMachineXML_IncludeSnapshots: If set, descend into the snapshots tree … … 4197 4197 if (m->sv < SettingsVersion_v1_11) 4198 4198 { 4199 // VirtualBox 3.3adds HD audio, CPU priorities, fault tolerance and per-machine media registries4199 // VirtualBox 4.0 adds HD audio, CPU priorities, fault tolerance and per-machine media registries 4200 4200 if ( hardwareMachine.audioAdapter.controllerType == AudioControllerType_HDA 4201 4201 || hardwareMachine.ulCpuPriority != 100 … … 4236 4236 const AttachedDevice &att = *it2; 4237 4237 4238 // Bandwidth limitations are new in VirtualBox 3.3(1.11)4238 // Bandwidth limitations are new in VirtualBox 4.0 (1.11) 4239 4239 if ( (m->sv < SettingsVersion_v1_11) 4240 4240 && (att.ulBandwidthLimit != 0) … … 4316 4316 ) 4317 4317 { 4318 /* New in VirtualBox 3.3*/4318 /* New in VirtualBox 4.0 */ 4319 4319 m->sv = SettingsVersion_v1_11; 4320 4320 break;
Note:
See TracChangeset
for help on using the changeset viewer.