VirtualBox

Changeset 23780 in vbox


Ignore:
Timestamp:
Oct 14, 2009 10:07:18 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53518
Message:

SSM: Adding IGN_GCPTR and IGN_GCPHYS just in case.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/ssm.h

    r23777 r23780  
    150150    /** Ignorable field. See SSMFIELD_ENTRY_IGNORE. */
    151151    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.  */
    153159    SSMFIELDTRANS_IGN_HCPTR,
    154160
     
    249255 * SSMR3PutStructEx.  The member is never touched upon restore. */
    250256#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. */
    254264#define SSMFIELD_ENTRY_IGN_HCPTR(Type, Field)       SSMFIELD_ENTRY_INT(Type, Field, SSMFIELDTRANS_IGN_HCPTR)
    255265
  • trunk/src/VBox/VMM/SSM.cpp

    r23779 r23780  
    34143414                    }
    34153415                }
     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));
    34163428                break;
    34173429
     
    60476059                break;
    60486060
     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
    60496073            case SSMFIELDTRANS_IGN_RCPTR:
    60506074                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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette