Changeset 23780 in vbox
- Timestamp:
- Oct 14, 2009 10:07:18 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53518
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/ssm.h
r23777 r23780 150 150 /** Ignorable field. See SSMFIELD_ENTRY_IGNORE. */ 151 151 SSMFIELDTRANS_IGNORE, 152 /** Ignorable Host context (HC) virtual address. See SSMFIELD_ENTRY_HCPTR. */ 152 /** Ignorable guest context (GC) virtual address. */ 153 SSMFIELDTRANS_IGN_GCPTR, 154 /** Ignorable guest context (GC) physical address. */ 155 SSMFIELDTRANS_IGN_GCPHYS, 156 /** Ignorable raw-mode context (RC) virtual address. */ 157 SSMFIELDTRANS_IGN_RCPTR, 158 /** Ignorable host context (HC) virtual address. */ 153 159 SSMFIELDTRANS_IGN_HCPTR, 154 160 … … 249 255 * SSMR3PutStructEx. The member is never touched upon restore. */ 250 256 #define SSMFIELD_ENTRY_IGNORE(Type, Field) SSMFIELD_ENTRY_INT(Type, Field, SSMFIELDTRANS_IGNORE) 251 /** Emit a SSMFIELD array entry for a ring-0 or ring-3 pointer type that is 252 * of no real interest to the saved state. It follows the same save and restore 253 * rules as SSMFIELD_ENTRY_IGNORE. */ 257 /** Emit a SSMFIELD array entry for an ignorable RTGCPHYS type. */ 258 #define SSMFIELD_ENTRY_IGN_GCPHYS(Type, Field) SSMFIELD_ENTRY_INT(Type, Field, SSMFIELDTRANS_IGN_GCPHYS) 259 /** Emit a SSMFIELD array entry for an ignorable RTGCPHYS type. */ 260 #define SSMFIELD_ENTRY_IGN_GCPTR(Type, Field) SSMFIELD_ENTRY_INT(Type, Field, SSMFIELDTRANS_IGN_GCPTR) 261 /** Emit a SSMFIELD array entry for an ignorable raw-mode context pointer. */ 262 #define SSMFIELD_ENTRY_IGN_RCPTR(Type, Field) SSMFIELD_ENTRY_INT(Type, Field, SSMFIELDTRANS_IGN_RCPTR) 263 /** Emit a SSMFIELD array entry for an ignorable ring-3 or/and ring-0 pointer. */ 254 264 #define SSMFIELD_ENTRY_IGN_HCPTR(Type, Field) SSMFIELD_ENTRY_INT(Type, Field, SSMFIELDTRANS_IGN_HCPTR) 255 265 -
trunk/src/VBox/VMM/SSM.cpp
r23779 r23780 3414 3414 } 3415 3415 } 3416 break; 3417 3418 case SSMFIELDTRANS_IGN_GCPTR: 3419 AssertMsgReturn(cbField == sizeof(RTGCPTR), ("%#x (%s)\n", cbField, pCur->pszName), VERR_SSM_FIELD_INVALID_SIZE); 3420 if (fFlags & SSMSTRUCT_FLAGS_DONT_IGNORE) 3421 rc = ssmR3DataWrite(pSSM, s_abZero, sizeof(RTGCPTR)); 3422 break; 3423 3424 case SSMFIELDTRANS_IGN_GCPHYS: 3425 AssertMsgReturn(cbField == sizeof(RTGCPHYS), ("%#x (%s)\n", cbField, pCur->pszName), VERR_SSM_FIELD_INVALID_SIZE); 3426 if (fFlags & SSMSTRUCT_FLAGS_DONT_IGNORE) 3427 rc = ssmR3DataWrite(pSSM, s_abZero, sizeof(RTGCPHYS)); 3416 3428 break; 3417 3429 … … 6047 6059 break; 6048 6060 6061 case SSMFIELDTRANS_IGN_GCPTR: 6062 AssertMsgReturn(cbField == sizeof(RTGCPTR), ("%#x (%s)\n", cbField, pCur->pszName), VERR_SSM_FIELD_INVALID_SIZE); 6063 if (fFlags & SSMSTRUCT_FLAGS_DONT_IGNORE) 6064 rc = SSMR3Skip(pSSM, pSSM->u.Read.cbGCPtr); 6065 break; 6066 6067 case SSMFIELDTRANS_IGN_GCPHYS: 6068 AssertMsgReturn(cbField == sizeof(RTGCPHYS), ("%#x (%s)\n", cbField, pCur->pszName), VERR_SSM_FIELD_INVALID_SIZE); 6069 if (fFlags & SSMSTRUCT_FLAGS_DONT_IGNORE) 6070 rc = SSMR3Skip(pSSM, pSSM->u.Read.cbGCPhys); 6071 break; 6072 6049 6073 case SSMFIELDTRANS_IGN_RCPTR: 6050 6074 AssertMsgReturn(cbField == sizeof(RTRCPTR), ("%#x (%s)\n", cbField, pCur->pszName), VERR_SSM_FIELD_INVALID_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.