VirtualBox

Changeset 34875 in vbox


Ignore:
Timestamp:
Dec 9, 2010 11:15:06 AM (14 years ago)
Author:
vboxsync
Message:

AHCI: Fix loading older saved states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r34851 r34875  
    69116911    int rc;
    69126912
    6913     if (    uVersion != AHCI_SAVED_STATE_VERSION
    6914         &&  uVersion != AHCI_SAVED_STATE_VERSION_PRE_ATAPI
    6915         &&  uVersion != AHCI_SAVED_STATE_VERSION_VBOX_30)
     6913    if (   uVersion > AHCI_SAVED_STATE_VERSION
     6914        || uVersion < AHCI_SAVED_STATE_VERSION_VBOX_30)
    69166915        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
    69176916
     
    70347033                SSMR3Skip(pSSM, AHCI_NR_COMMAND_SLOTS * sizeof(uint8_t)); /* no active data here */
    70357034
    7036             if (uVersion <= AHCI_SAVED_STATE_VERSION)
     7035            if (uVersion < AHCI_SAVED_STATE_VERSION)
    70377036            {
    70387037                /* The old positions in the FIFO, not required. */
     
    70437042            SSMR3GetU32(pSSM, (uint32_t *)&pThis->ahciPort[i].u32TasksFinished);
    70447043            SSMR3GetU32(pSSM, (uint32_t *)&pThis->ahciPort[i].u32QueuedTasksFinished);
    7045             SSMR3GetU32(pSSM, (uint32_t *)&pThis->ahciPort[i].u32CurrentCommandSlot);
     7044            if (uVersion >= AHCI_SAVED_STATE_VERSION)
     7045                SSMR3GetU32(pSSM, (uint32_t *)&pThis->ahciPort[i].u32CurrentCommandSlot);
    70467046
    70477047            if (uVersion > AHCI_SAVED_STATE_VERSION_PRE_ATAPI)
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