VirtualBox

Changeset 92007 in vbox


Ignore:
Timestamp:
Oct 22, 2021 1:26:01 PM (3 years ago)
Author:
vboxsync
Message:

VMM/PGM: Fixed saved state regression from r147656. bugref:9517

File:
1 edited

Legend:

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

    r91854 r92007  
    20382038static DECLCALLBACK(int) pgmR3SaveExec(PVM pVM, PSSMHANDLE pSSM)
    20392039{
    2040     int     rc   = VINF_SUCCESS;
    2041     PPGM    pPGM = &pVM->pgm.s;
     2040    PPGM pPGM = &pVM->pgm.s;
    20422041
    20432042    /*
     
    20502049     * Save basic data (required / unaffected by relocation).
    20512050     */
    2052     SSMR3PutStruct(pSSM, pPGM, &s_aPGMFields[0]);
    2053 
    2054     for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
     2051    int rc = SSMR3PutStructEx(pSSM, pPGM, sizeof(*pPGM), 0 /*fFlags*/, &s_aPGMFields[0], NULL /*pvUser*/);
     2052
     2053    for (VMCPUID idCpu = 0; idCpu < pVM->cCpus && RT_SUCCESS(rc); idCpu++)
    20552054        rc = SSMR3PutStruct(pSSM, &pVM->apCpusR3[idCpu]->pgm.s, &s_aPGMCpuFields[0]);
    20562055
     
    29722971    {
    29732972        if (uVersion > PGM_SAVED_STATE_VERSION_PRE_BALLOON)
    2974             rc = SSMR3GetStruct(pSSM, pPGM, &s_aPGMFields[0]);
     2973            rc = SSMR3GetStructEx(pSSM, pPGM, sizeof(*pPGM), 0 /*fFlags*/, &s_aPGMFields[0], NULL /*pvUser*/);
    29752974        else
    2976             rc = SSMR3GetStruct(pSSM, pPGM, &s_aPGMFieldsPreBalloon[0]);
     2975            rc = SSMR3GetStructEx(pSSM, pPGM, sizeof(*pPGM), 0 /*fFlags*/, &s_aPGMFieldsPreBalloon[0], NULL /*pvUser*/);
    29772976
    29782977        AssertLogRelRCReturn(rc, rc);
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