Changeset 23795 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 15, 2009 12:10:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r23750 r23795 1209 1209 fNestedPaging(false), 1210 1210 fVPID(false), 1211 fSyntheticCpu(false), 1211 1212 fPAE(false), 1212 fSyntheticCpu(false),1213 1213 cCPUs(1), 1214 1214 ulMemorySizeMB((uint32_t)-1), … … 1474 1474 pelmCPUChild->getAttributeValue("enabled", hw.fPAE); 1475 1475 if ((pelmCPUChild = pelmHwChild->findChildElement("SyntheticCpu"))) 1476 pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu); 1476 pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu); 1477 1477 } 1478 1478 else if (pelmHwChild->nameEquals("Memory")) … … 2872 2872 m->sv = SettingsVersion_v1_9; 2873 2873 } 2874 2875 #ifdef VBOX_WITH_LIVE_MIGRATION 2876 if ( m->sv < SettingsVersion_v1_9 2877 && ( fLiveMigrationTarget 2878 || uLiveMigrationPort 2879 || !strLiveMigrationPassword.isEmpty() 2880 ) 2881 ) 2882 m->sv = SettingsVersion_v1_9; 2883 #endif 2874 2884 } 2875 2885 … … 2912 2922 pelmMachine->setAttribute("aborted", fAborted); 2913 2923 #ifdef VBOX_WITH_LIVE_MIGRATION /** @todo LiveMigration: Checkout how the file format versioning is done. */ 2914 if (fLiveMigrationTarget) 2915 pelmMachine->setAttribute("liveMigrationTarget", true); 2916 if (uLiveMigrationPort) 2917 pelmMachine->setAttribute("liveMigrationPort", uLiveMigrationPort); 2918 if (!strLiveMigrationPassword.isEmpty()) 2919 pelmMachine->setAttribute("liveMigrationPassword", strLiveMigrationPassword); 2924 if (m->sv >= SettingsVersion_v1_9) 2925 { 2926 if (fLiveMigrationTarget) 2927 pelmMachine->setAttribute("liveMigrationTarget", true); 2928 if (uLiveMigrationPort) 2929 pelmMachine->setAttribute("liveMigrationPort", uLiveMigrationPort); 2930 if (!strLiveMigrationPassword.isEmpty()) 2931 pelmMachine->setAttribute("liveMigrationPassword", strLiveMigrationPassword); 2932 } 2920 2933 #endif 2921 2934
Note:
See TracChangeset
for help on using the changeset viewer.