Changeset 52771 in vbox
- Timestamp:
- Sep 17, 2014 11:32:33 AM (10 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CSAM.cpp
r50575 r52771 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 253 253 * Register save and load state notifiers. 254 254 */ 255 rc = SSMR3RegisterInternal(pVM, "CSAM", 0, CSAM_S SM_VERSION, sizeof(pVM->csam.s) + PAGE_SIZE*16,255 rc = SSMR3RegisterInternal(pVM, "CSAM", 0, CSAM_SAVED_STATE_VERSION, sizeof(pVM->csam.s) + PAGE_SIZE*16, 256 256 NULL, NULL, NULL, 257 257 NULL, csamr3Save, NULL, … … 580 580 581 581 Assert(uPass == SSM_PASS_FINAL); NOREF(uPass); 582 if (uVersion != CSAM_S SM_VERSION)582 if (uVersion != CSAM_SAVED_STATE_VERSION) 583 583 { 584 584 AssertMsgFailed(("csamR3Load: Invalid version uVersion=%d!\n", uVersion)); -
trunk/src/VBox/VMM/VMMR3/PATM.cpp
r50575 r52771 7 7 8 8 /* 9 * Copyright (C) 2006-201 3Oracle Corporation9 * Copyright (C) 2006-2014 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 220 220 * Register save and load state notifiers. 221 221 */ 222 rc = SSMR3RegisterInternal(pVM, "PATM", 0, PATM_S SM_VERSION, sizeof(pVM->patm.s) + PATCH_MEMORY_SIZE + PAGE_SIZE + PATM_STACK_TOTAL_SIZE + PAGE_SIZE,222 rc = SSMR3RegisterInternal(pVM, "PATM", 0, PATM_SAVED_STATE_VERSION, sizeof(pVM->patm.s) + PATCH_MEMORY_SIZE + PAGE_SIZE + PATM_STACK_TOTAL_SIZE + PAGE_SIZE, 223 223 NULL, NULL, NULL, 224 224 NULL, patmR3Save, NULL, -
trunk/src/VBox/VMM/VMMR3/PATMSSM.cpp
r50575 r52771 7 7 8 8 /* 9 * Copyright (C) 2006-201 3Oracle Corporation9 * Copyright (C) 2006-2014 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 817 817 int rc; 818 818 819 if ( uVersion != PATM_S SM_VERSION820 && uVersion != PATM_S SM_VERSION_MEM821 && uVersion != PATM_S SM_VERSION_FIXUP_HACK822 && uVersion != PATM_S SM_VERSION_VER16819 if ( uVersion != PATM_SAVED_STATE_VERSION 820 && uVersion != PATM_SAVED_STATE_VERSION_MEM 821 && uVersion != PATM_SAVED_STATE_VERSION_FIXUP_HACK 822 && uVersion != PATM_SAVED_STATE_VERSION_VER16 823 823 ) 824 824 { … … 826 826 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; 827 827 } 828 uint32_t const fStructRestoreFlags = uVersion <= PATM_S SM_VERSION_MEM ? SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED : 0;828 uint32_t const fStructRestoreFlags = uVersion <= PATM_SAVED_STATE_VERSION_MEM ? SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED : 0; 829 829 Assert(uPass == SSM_PASS_FINAL); NOREF(uPass); 830 830 … … 835 835 */ 836 836 RT_ZERO(patmInfo); 837 if ( uVersion == PATM_S SM_VERSION_MEM837 if ( uVersion == PATM_SAVED_STATE_VERSION_MEM 838 838 && SSMR3HandleRevision(pSSM) >= 86139 839 839 && SSMR3HandleVersion(pSSM) >= VBOX_FULL_VERSION_MAKE(4, 2, 51)) … … 898 898 */ 899 899 uint32_t cbStack = PATM_STACK_TOTAL_SIZE; 900 if (uVersion > PATM_S SM_VERSION_MEM)900 if (uVersion > PATM_SAVED_STATE_VERSION_MEM) 901 901 { 902 902 rc = SSMR3GetU32(pSSM, &cbStack); … … 1137 1137 1138 1138 /* The CPUMCTX structure has completely changed, so correct the offsets too. */ 1139 if (ulSSMVersion == PATM_S SM_VERSION_VER16)1139 if (ulSSMVersion == PATM_SAVED_STATE_VERSION_VER16) 1140 1140 { 1141 1141 unsigned uCPUMOffset = *pFixup - patmInfo.pCPUMCtxGC; … … 1268 1268 * structure. 1269 1269 * 3. That the CPUM leafs are less than 8KB into the structure. */ 1270 if ( ulSSMVersion <= PATM_S SM_VERSION_FIXUP_HACK1270 if ( ulSSMVersion <= PATM_SAVED_STATE_VERSION_FIXUP_HACK 1271 1271 && *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(32)) 1272 1272 { … … 1275 1275 } 1276 1276 else 1277 if ( ulSSMVersion <= PATM_S SM_VERSION_FIXUP_HACK1277 if ( ulSSMVersion <= PATM_SAVED_STATE_VERSION_FIXUP_HACK 1278 1278 && *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(8192)) 1279 1279 { … … 1302 1302 } 1303 1303 else 1304 if (ulSSMVersion >= PATM_S SM_VERSION_MEM)1304 if (ulSSMVersion >= PATM_SAVED_STATE_VERSION_MEM) 1305 1305 { 1306 1306 #ifdef LOG_ENABLED -
trunk/src/VBox/VMM/include/CSAMInternal.h
r44528 r52771 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 39 39 /** @} */ 40 40 41 #define CSAM_S SM_VERSION1441 #define CSAM_SAVED_STATE_VERSION 14 42 42 43 43 #define CSAM_PGDIRBMP_CHUNKS 1024 -
trunk/src/VBox/VMM/include/PATMInternal.h
r50575 r52771 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 * @{ */ 34 34 /** Uses normal structure serialization with markers and everything. */ 35 #define PATM_S SM_VERSION 5635 #define PATM_SAVED_STATE_VERSION 56 36 36 /** Last version which saves structures as raw memory. */ 37 #define PATM_S SM_VERSION_MEM 5538 #define PATM_S SM_VERSION_FIXUP_HACK 5439 #define PATM_S SM_VERSION_FIXUP_HACK 5440 #define PATM_S SM_VERSION_VER16 5337 #define PATM_SAVED_STATE_VERSION_MEM 55 38 #define PATM_SAVED_STATE_VERSION_FIXUP_HACK 54 39 #define PATM_SAVED_STATE_VERSION_FIXUP_HACK 54 40 #define PATM_SAVED_STATE_VERSION_VER16 53 41 41 /** @} */ 42 42
Note:
See TracChangeset
for help on using the changeset viewer.