VirtualBox

Changeset 8430 in vbox


Ignore:
Timestamp:
Apr 28, 2008 4:06:30 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30281
Message:

Devices/VMMDev: restored compatibility of saved states with r30072

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r8425 r8430  
    19471947
    19481948
    1949 #define VMMDEV_SSM_VERSION  6
     1949#define VMMDEV_SSM_VERSION  8
    19501950
    19511951/**
     
    19961996{
    19971997    VMMDevState *pData = PDMINS2DATA(pDevIns, VMMDevState*);
    1998     if (u32Version != VMMDEV_SSM_VERSION)
     1998    if (   SSM_VERSION_MAJOR_CHANGED(u32Version, VMMDEV_SSM_VERSION)
     1999        || (SSM_VERSION_MINOR(u32Version) < 6))
    19992000        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
    20002001    SSMR3GetU32(pSSMHandle, &pData->hypervisorSize);
     
    20162017
    20172018    SSMR3GetU32(pSSMHandle, &pData->guestCaps);
     2019
     2020    /* Attributes which were temporarily introduced in r30072 */
     2021    if (   SSM_VERSION_MAJOR(u32Version) ==  0
     2022        && SSM_VERSION_MINOR(u32Version) == 7)
     2023    {
     2024        uint32_t temp;
     2025        SSMR3GetU32(pSSMHandle, &temp);
     2026        SSMR3GetU32(pSSMHandle, &temp);
     2027    }
    20182028
    20192029#ifdef VBOX_HGCM
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