VirtualBox

Ignore:
Timestamp:
Oct 30, 2009 2:44:50 PM (15 years ago)
Author:
vboxsync
Message:

PGM.cpp: Validate the size of a saved MMIO2 range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMSavedState.cpp

    r23801 r24200  
    696696        }
    697697        AssertLogRelMsgReturn(pMmio2, ("%s/%u/%u: %s\n", szDevName, uInstance, iRegion, szDesc), VERR_SSM_LOAD_CONFIG_MISMATCH);
     698
     699        /*
     700         * Validate the configuration, the size of the MMIO2 region should be
     701         * the same.
     702         */
     703        if (cb != pMmio2->RamRange.cb)
     704        {
     705            LogRel(("PGM: MMIO2 region \"%s\" size mismatch: saved=%RGp config=%RGp\n",
     706                    pMmio2->RamRange.pszDesc, cb, pMmio2->RamRange.cb));
     707            if (cb > pMmio2->RamRange.cb) /* bad idea? */
     708                return VERR_SSM_LOAD_CONFIG_MISMATCH;
     709        }
     710
    698711    } /* forever */
    699712}
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