VirtualBox

Changeset 52771 in vbox


Ignore:
Timestamp:
Sep 17, 2014 11:32:33 AM (10 years ago)
Author:
vboxsync
Message:

VMM/CSAM, PATM: rename SSM_VERSION macros to SAVED_STATE_VERSION macros.

Location:
trunk/src/VBox/VMM
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CSAM.cpp

    r50575 r52771  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    253253     * Register save and load state notifiers.
    254254     */
    255     rc = SSMR3RegisterInternal(pVM, "CSAM", 0, CSAM_SSM_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,
    256256                               NULL, NULL, NULL,
    257257                               NULL, csamr3Save, NULL,
     
    580580
    581581    Assert(uPass == SSM_PASS_FINAL); NOREF(uPass);
    582     if (uVersion != CSAM_SSM_VERSION)
     582    if (uVersion != CSAM_SAVED_STATE_VERSION)
    583583    {
    584584        AssertMsgFailed(("csamR3Load: Invalid version uVersion=%d!\n", uVersion));
  • trunk/src/VBox/VMM/VMMR3/PATM.cpp

    r50575 r52771  
    77
    88/*
    9  * Copyright (C) 2006-2013 Oracle Corporation
     9 * Copyright (C) 2006-2014 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    220220     * Register save and load state notifiers.
    221221     */
    222     rc = SSMR3RegisterInternal(pVM, "PATM", 0, PATM_SSM_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,
    223223                               NULL, NULL, NULL,
    224224                               NULL, patmR3Save, NULL,
  • trunk/src/VBox/VMM/VMMR3/PATMSSM.cpp

    r50575 r52771  
    77
    88/*
    9  * Copyright (C) 2006-2013 Oracle Corporation
     9 * Copyright (C) 2006-2014 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    817817    int  rc;
    818818
    819     if (    uVersion != PATM_SSM_VERSION
    820         &&  uVersion != PATM_SSM_VERSION_MEM
    821         &&  uVersion != PATM_SSM_VERSION_FIXUP_HACK
    822         &&  uVersion != PATM_SSM_VERSION_VER16
     819    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
    823823       )
    824824    {
     
    826826        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
    827827    }
    828     uint32_t const fStructRestoreFlags = uVersion <= PATM_SSM_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;
    829829    Assert(uPass == SSM_PASS_FINAL); NOREF(uPass);
    830830
     
    835835     */
    836836    RT_ZERO(patmInfo);
    837     if (   uVersion == PATM_SSM_VERSION_MEM
     837    if (   uVersion == PATM_SAVED_STATE_VERSION_MEM
    838838        && SSMR3HandleRevision(pSSM) >= 86139
    839839        && SSMR3HandleVersion(pSSM)  >= VBOX_FULL_VERSION_MAKE(4, 2, 51))
     
    898898     */
    899899    uint32_t cbStack = PATM_STACK_TOTAL_SIZE;
    900     if (uVersion > PATM_SSM_VERSION_MEM)
     900    if (uVersion > PATM_SAVED_STATE_VERSION_MEM)
    901901    {
    902902        rc = SSMR3GetU32(pSSM, &cbStack);
     
    11371137
    11381138            /* The CPUMCTX structure has completely changed, so correct the offsets too. */
    1139             if (ulSSMVersion == PATM_SSM_VERSION_VER16)
     1139            if (ulSSMVersion == PATM_SAVED_STATE_VERSION_VER16)
    11401140            {
    11411141                unsigned uCPUMOffset = *pFixup - patmInfo.pCPUMCtxGC;
     
    12681268         *    structure.
    12691269         * 3. That the CPUM leafs are less than 8KB into the structure. */
    1270         if (    ulSSMVersion <= PATM_SSM_VERSION_FIXUP_HACK
     1270        if (    ulSSMVersion <= PATM_SAVED_STATE_VERSION_FIXUP_HACK
    12711271            &&  *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(32))
    12721272        {
     
    12751275        }
    12761276        else
    1277         if (    ulSSMVersion <= PATM_SSM_VERSION_FIXUP_HACK
     1277        if (    ulSSMVersion <= PATM_SAVED_STATE_VERSION_FIXUP_HACK
    12781278            &&  *pFixup - (patmInfo.pCPUMCtxGC & UINT32_C(0xffc00000)) < UINT32_C(8192))
    12791279        {
     
    13021302        }
    13031303        else
    1304         if (ulSSMVersion >= PATM_SSM_VERSION_MEM)
     1304        if (ulSSMVersion >= PATM_SAVED_STATE_VERSION_MEM)
    13051305        {
    13061306#ifdef LOG_ENABLED
  • trunk/src/VBox/VMM/include/CSAMInternal.h

    r44528 r52771  
    55
    66/*
    7  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3939/** @} */
    4040
    41 #define CSAM_SSM_VERSION                        14
     41#define CSAM_SAVED_STATE_VERSION                14
    4242
    4343#define CSAM_PGDIRBMP_CHUNKS                    1024
  • trunk/src/VBox/VMM/include/PATMInternal.h

    r50575 r52771  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333 * @{ */
    3434/** Uses normal structure serialization with markers and everything. */
    35 #define PATM_SSM_VERSION                    56
     35#define PATM_SAVED_STATE_VERSION                    56
    3636/** Last version which saves structures as raw memory. */
    37 #define PATM_SSM_VERSION_MEM                55
    38 #define PATM_SSM_VERSION_FIXUP_HACK         54
    39 #define PATM_SSM_VERSION_FIXUP_HACK         54
    40 #define PATM_SSM_VERSION_VER16              53
     37#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
    4141/** @}  */
    4242
Note: See TracChangeset for help on using the changeset viewer.

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