VirtualBox

Changeset 15438 in vbox for trunk/src


Ignore:
Timestamp:
Dec 13, 2008 12:39:15 PM (16 years ago)
Author:
vboxsync
Message:

PGM: Ugly workaround for the 'VMMDev Heap' which broke the 2.0 -> 2.1 saved state compatibility. (#3281)

File:
1 edited

Legend:

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

    r15436 r15438  
    24712471            AssertMsgFailed(("u32Sep=%#x (last)\n", u32Sep));
    24722472            return VERR_SSM_DATA_UNIT_FORMAT_CHANGED;
     2473        }
     2474
     2475        /* This is a horribly ugly hack for an 2.0 -> 2.1 incompatibility
     2476           in the VMMDev PCI regions. VMMDev Heap was added in 2.1 and we
     2477           simply skip it here if it's not in the saved state. */
     2478        if (    (   GCPhys != pRam->GCPhys
     2479                 || GCPhysLast != pRam->GCPhysLast
     2480                 || cb != pRam->cb
     2481                 || fHaveBits != !!pRam->pvR3)
     2482            &&  !strcmp(pRam->pszDesc, "VMMDev Heap")
     2483            &&  pRam->pNextR3)
     2484        {
     2485            pRam = pRam->pNextR3;
     2486            i++;
    24732487        }
    24742488
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