VirtualBox

Changeset 37330 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 6, 2011 4:15:52 PM (14 years ago)
Author:
vboxsync
Message:

PDMBlkCache: Fix loading a saved state which has fewer saved entries than the current VM. This should not result in an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMBlkCache.cpp

    r37072 r37330  
    880880    SSMR3GetU32(pSSM, &cRefs);
    881881
    882     if (cRefs == pBlkCacheGlobal->cRefs)
     882    /*
     883     * Fewer users in the saved state than in the current VM are allowed
     884     * because that means that there are only new ones which don't have any saved state
     885     * which can get lost.
     886     * More saved entries that current ones are not allowed because this could result in
     887     * lost data.
     888     */
     889    if (cRefs <= pBlkCacheGlobal->cRefs)
    883890    {
    884891        char *pszId = NULL;
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