VirtualBox

Changeset 7693 in vbox


Ignore:
Timestamp:
Apr 2, 2008 8:36:16 AM (17 years ago)
Author:
vboxsync
Message:

PCNet: SSM support for the private guest interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r7688 r7693  
    8888#define PCNET_PNPMMIO_SIZE              0x20
    8989
    90 #define PCNET_SAVEDSTATE_VERSION        8
     90#define PCNET_SAVEDSTATE_VERSION        9
    9191
    9292#define BCR_MAX_RAP                     50
     
    868868/**
    869869 * Initialize the shared memory for the private guest interface.
     870 * @note Changing this layout will break SSM for guests using the private guest interface!
    870871 */
    871872static void pcnetInitSharedMemory(PCNetState *pData)
     
    40904091    SSMR3PutS32(pSSMHandle, pData->iISR);
    40914092    SSMR3PutU32(pSSMHandle, pData->u32Lnkst);
     4093    SSMR3PutBool(pSSMHandle, pData->fPrivIfEnabled);
    40924094    SSMR3PutGCPhys32(pSSMHandle, pData->GCRDRA);
    40934095    SSMR3PutGCPhys32(pSSMHandle, pData->GCTDRA);
     
    41534155    SSMR3GetS32(pSSMHandle, &pData->iISR);
    41544156    SSMR3GetU32(pSSMHandle, &pData->u32Lnkst);
     4157    if (   SSM_VERSION_MAJOR(u32Version) >  0
     4158        || SSM_VERSION_MINOR(u32Version) >= 9)
     4159    {
     4160        SSMR3GetBool(pSSMHandle, &pData->fPrivIfEnabled);
     4161        if (pData->fPrivIfEnabled)
     4162            LogRel(("PCNet#%d: Enabling private interface\n", PCNET_INST_NR));
     4163    }
    41554164    SSMR3GetGCPhys32(pSSMHandle, &pData->GCRDRA);
    41564165    SSMR3GetGCPhys32(pSSMHandle, &pData->GCTDRA);
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