VirtualBox

Changeset 49247 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 22, 2013 8:36:41 PM (11 years ago)
Author:
vboxsync
Message:

PATM,CSAM,SSM: Fix PATM restore issue in 4.3.0. SSMSTRUCT_FLAGS_MEM_BAND_AID policy update.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

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

    r48936 r49247  
    604604     * Restore CSAM structure
    605605     */
    606 #if 0
    607     rc = SSMR3GetMem(pSSM, &csamInfo, sizeof(csamInfo));
    608 #else
    609606    RT_ZERO(csamInfo);
    610     rc = SSMR3GetStructEx(pSSM, &csamInfo, sizeof(csamInfo), SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aCsamFields[0], NULL);
    611 #endif
     607    rc = SSMR3GetStructEx(pSSM, &csamInfo, sizeof(csamInfo), SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aCsamFields[0], NULL);
    612608    AssertRCReturn(rc, rc);
    613609
     
    625621
    626622    /* Restore pgdir bitmap (we'll change the pointers next). */
    627 #if 0
    628     rc = SSMR3GetMem(pSSM, pVM->csam.s.pPDBitmapHC, CSAM_PGDIRBMP_CHUNKS*sizeof(RTHCPTR));
    629 #else
    630623    rc = SSMR3GetStructEx(pSSM, pVM->csam.s.pPDBitmapHC, sizeof(uint8_t *) * CSAM_PGDIRBMP_CHUNKS,
    631                           SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aCsamPDBitmapArray[0], NULL);
    632 #endif
     624                          SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aCsamPDBitmapArray[0], NULL);
    633625    AssertRCReturn(rc, rc);
    634626
     
    669661        PCSAMPAGE    pPage;
    670662
    671 #if 0
    672         rc = SSMR3GetMem(pSSM, &page, sizeof(page));
    673 #else
    674663        RT_ZERO(page);
    675         rc = SSMR3GetStructEx(pSSM, &page, sizeof(page), SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aCsamPageRecFields[0], NULL);
    676 #endif
     664        rc = SSMR3GetStructEx(pSSM, &page, sizeof(page), SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aCsamPageRecFields[0], NULL);
    677665        AssertRCReturn(rc, rc);
    678666
  • trunk/src/VBox/VMM/VMMR3/PATMSSM.cpp

    r45620 r49247  
    733733     */
    734734    RT_ZERO(patmInfo);
    735     rc = SSMR3GetStructEx(pSSM, &patmInfo, sizeof(patmInfo), SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aPatmFields[0], NULL);
     735    rc = SSMR3GetStructEx(pSSM, &patmInfo, sizeof(patmInfo), SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aPatmFields[0], NULL);
    736736    AssertRCReturn(rc, rc);
    737737
     
    787787     */
    788788    RT_BZERO(pVM->patm.s.pGCStateHC, sizeof(PATMGCSTATE));
    789     rc = SSMR3GetStructEx(pSSM, pVM->patm.s.pGCStateHC, sizeof(PATMGCSTATE), SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aPatmGCStateFields[0], NULL);
     789    rc = SSMR3GetStructEx(pSSM, pVM->patm.s.pGCStateHC, sizeof(PATMGCSTATE), SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aPatmGCStateFields[0], NULL);
    790790    AssertRCReturn(rc, rc);
    791791
     
    805805
    806806        RT_ZERO(patch);
    807         rc = SSMR3GetStructEx(pSSM, &patch, sizeof(patch), SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aPatmPatchRecFields[0], NULL);
     807        rc = SSMR3GetStructEx(pSSM, &patch, sizeof(patch), SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aPatmPatchRecFields[0], NULL);
    808808        AssertRCReturn(rc, rc);
    809809
     
    854854
    855855            RT_ZERO(rec);
    856             rc = SSMR3GetStructEx(pSSM, &rec, sizeof(rec), SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aPatmRelocRec[0], NULL);
     856            rc = SSMR3GetStructEx(pSSM, &rec, sizeof(rec), SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aPatmRelocRec[0], NULL);
    857857            AssertRCReturn(rc, rc);
    858858
     
    902902            {
    903903                RT_ZERO(rec);
    904                 rc = SSMR3GetStructEx(pSSM, &rec, sizeof(rec), SSMSTRUCT_FLAGS_MEM_BAND_AID, &g_aPatmRecPatchToGuest[0], NULL);
     904                rc = SSMR3GetStructEx(pSSM, &rec, sizeof(rec), SSMSTRUCT_FLAGS_MEM_BAND_AID_RELAXED, &g_aPatmRecPatchToGuest[0], NULL);
    905905                AssertRCReturn(rc, rc);
    906906
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