VirtualBox

Changeset 42325 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 23, 2012 2:23:53 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79398
Message:

DevAHCI: Saved state restore fix (untested). Made ahciR3LoadLegacyEmulationState static (everything shall be static unless it *REALLY* needs to be global).

File:
1 edited

Legend:

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

    r42207 r42325  
    66
    77/*
    8  * Copyright (C) 2006-2011 Oracle Corporation
     8 * Copyright (C) 2006-2012 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    67236723 * @param   pSSM  The handle to the saved state.
    67246724 */
    6725 int ahciR3LoadLegacyEmulationState(PSSMHANDLE pSSM)
     6725static int ahciR3LoadLegacyEmulationState(PSSMHANDLE pSSM)
    67266726{
    67276727    int             rc;
     
    67356735    LogFlow(("LoadOldSavedStates u32Version = %d\n", u32Version));
    67366736
    6737     if (u32Version != ATA_CTL_SAVED_STATE_VERSION
     6737    if (   u32Version != ATA_CTL_SAVED_STATE_VERSION
    67386738        && u32Version != ATA_CTL_SAVED_STATE_VERSION_WITHOUT_FULL_SENSE
    67396739        && u32Version != ATA_CTL_SAVED_STATE_VERSION_WITHOUT_EVENT_STATUS)
     
    67506750
    67516751        if (u32Version > ATA_CTL_SAVED_STATE_VERSION_WITHOUT_FULL_SENSE)
    6752         {
    67536752            SSMR3Skip(pSSM, 64);
    6754         }
    67556753        else
    6756         {
    67576754            SSMR3Skip(pSSM, 2);
    6758         }
    67596755        /** @todo triple-check this hack after passthrough is working */
    67606756        SSMR3Skip(pSSM, 1);
     
    68006796        || uVersion < AHCI_SAVED_STATE_VERSION_VBOX_30)
    68016797        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
     6798
     6799    /* Deal with the priod after removing the saved IDE bits where the saved
     6800       state version remained unchanged. */
     6801    if (   uVersion == AHCI_SAVED_STATE_VERSION_IDE_EMULATION
     6802        && SSMR3HandleRevision(pSSM) >= 79045
     6803        && SSMR3HandleRevision(pSSM) <  79201)
     6804        uVersion++;
    68026805
    68036806    /* Verify config. */
     
    75487551        if (   pAhciPort->pDrvBlockAsync
    75497552            && !pAhciPort->fATAPI)
    7550         {
    75517553            pAhciPort->fAsyncInterface = true;
    7552         }
    75537554        else
    75547555        {
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