VirtualBox

Ignore:
Timestamp:
Jul 17, 2015 1:38:14 PM (9 years ago)
Author:
vboxsync
Message:

DevVGA: Added markers to the saved state that separates various parts so we can more easily pin down load troubles when reading the log file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r56814 r56969  
    16031603    if (RT_SUCCESS(rc))
    16041604    {
     1605        VGA_SAVED_STATE_PUT_MARKER(pSSM, 2);
     1606
    16051607        /* Save VBVACONTEXT. */
    16061608        VBVACONTEXT *pCtx = (VBVACONTEXT *)HGSMIContext (pIns);
     
    17811783}
    17821784
    1783 int vboxVBVALoadStateExec (PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t u32Version)
    1784 {
    1785     if (u32Version < VGA_SAVEDSTATE_VERSION_HGSMI)
     1785int vboxVBVALoadStateExec (PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion)
     1786{
     1787    if (uVersion < VGA_SAVEDSTATE_VERSION_HGSMI)
    17861788    {
    17871789        /* Nothing was saved. */
     
    17911793    PVGASTATE pVGAState = PDMINS_2_DATA(pDevIns, PVGASTATE);
    17921794    PHGSMIINSTANCE pIns = pVGAState->pHGSMI;
    1793     int rc = HGSMIHostLoadStateExec (pIns, pSSM, u32Version);
     1795    int rc = HGSMIHostLoadStateExec (pIns, pSSM, uVersion);
    17941796    if (RT_SUCCESS(rc))
    17951797    {
     1798        VGA_SAVED_STATE_GET_MARKER_RETURN_ON_MISMATCH(pSSM, uVersion, 2);
     1799
    17961800        /* Load VBVACONTEXT. */
    17971801        VBVACONTEXT *pCtx = (VBVACONTEXT *)HGSMIContext (pIns);
     
    18791883            }
    18801884
    1881             if (u32Version > VGA_SAVEDSTATE_VERSION_WITH_CONFIG)
     1885            if (uVersion > VGA_SAVEDSTATE_VERSION_WITH_CONFIG)
    18821886            {
    18831887                /* Read mouse pointer shape information. */
     
    19331937                }
    19341938
    1935                 if (u32Version >= VGA_SAVEDSTATE_VERSION_MODE_HINTS)
     1939                if (uVersion >= VGA_SAVEDSTATE_VERSION_MODE_HINTS)
    19361940                {
    19371941                    uint32_t cModeHints, cbModeHints;
     
    19581962            LogFlowFunc(("%d views loaded\n", pCtx->cViews));
    19591963
    1960             if (u32Version > VGA_SAVEDSTATE_VERSION_WDDM)
     1964            if (uVersion > VGA_SAVEDSTATE_VERSION_WDDM)
    19611965            {
    19621966                bool fLoadCommands;
    19631967
    1964                 if (u32Version < VGA_SAVEDSTATE_VERSION_FIXED_PENDVHWA)
     1968                if (uVersion < VGA_SAVEDSTATE_VERSION_FIXED_PENDVHWA)
    19651969                {
    19661970                    const char *pcszOsArch = SSMR3HandleHostOSAndArch(pSSM);
     
    19881992                    if (fLoadCommands)
    19891993                    {
    1990                         rc = vbvaVHWACommandLoadPending(pVGAState, pSSM, u32Version);
     1994                        rc = vbvaVHWACommandLoadPending(pVGAState, pSSM, uVersion);
    19911995                        AssertRCReturn(rc, rc);
    19921996                    }
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