- Timestamp:
- Nov 19, 2009 6:15:25 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/SSM.cpp
r24793 r24804 919 919 if (RT_SUCCESS(rc)) 920 920 rc = RTCritSectInit(&pVM->ssm.s.CancelCritSect); 921 if (RT_SUCCESS(rc)) 922 { 923 STAM_REL_REG_USED(pVM, &pVM->ssm.s.uPass, STAMTYPE_U32, "/SSM/uPass", STAMUNIT_COUNT, "Current pass"); 924 } 921 925 922 926 pVM->ssm.s.fInitialized = RT_SUCCESS(rc); … … 4045 4049 { 4046 4050 VM_ASSERT_EMT0(pVM); 4047 4051 pVM->ssm.s.uPass = 0; 4048 4052 4049 4053 /* … … 4920 4924 for (uint32_t uPass = 0; uPass < SSM_MAX_PASSES; uPass++) 4921 4925 { 4926 pVM->ssm.s.uPass = uPass; 4927 4922 4928 /* 4923 4929 * Save state and vote on whether we need more passes or not. -
trunk/src/VBox/VMM/SSMInternal.h
r23709 r24804 264 264 typedef struct SSM 265 265 { 266 /** Critical section for serializing cancellation (pSSM). */ 267 RTCRITSECT CancelCritSect; 268 /** The handle of the current save or load operation. 269 * This is used by SSMR3Cancel. */ 270 PSSMHANDLE volatile pSSM; 271 266 272 /** FIFO of data entity descriptors. */ 267 273 R3PTRTYPE(PSSMUNIT) pHead; … … 270 276 /** For lazy init. */ 271 277 bool fInitialized; 272 /** Critical section for serializing cancellation. */ 273 RTCRITSECT CancelCritSect; 274 /** The handle of the current save or load operation. 275 * This is used by SSMR3Cancel. */ 276 PSSMHANDLE volatile pSSM; 278 /** Current pass (for STAM). */ 279 uint32_t uPass; 280 uint32_t u32Alignment; 277 281 } SSM; 278 282 /** Pointer to SSM VM instance data. */
Note:
See TracChangeset
for help on using the changeset viewer.