Changeset 92007 in vbox
- Timestamp:
- Oct 22, 2021 1:26:01 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMSavedState.cpp
r91854 r92007 2038 2038 static DECLCALLBACK(int) pgmR3SaveExec(PVM pVM, PSSMHANDLE pSSM) 2039 2039 { 2040 int rc = VINF_SUCCESS; 2041 PPGM pPGM = &pVM->pgm.s; 2040 PPGM pPGM = &pVM->pgm.s; 2042 2041 2043 2042 /* … … 2050 2049 * Save basic data (required / unaffected by relocation). 2051 2050 */ 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++) 2055 2054 rc = SSMR3PutStruct(pSSM, &pVM->apCpusR3[idCpu]->pgm.s, &s_aPGMCpuFields[0]); 2056 2055 … … 2972 2971 { 2973 2972 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*/); 2975 2974 else 2976 rc = SSMR3GetStruct (pSSM, pPGM, &s_aPGMFieldsPreBalloon[0]);2975 rc = SSMR3GetStructEx(pSSM, pPGM, sizeof(*pPGM), 0 /*fFlags*/, &s_aPGMFieldsPreBalloon[0], NULL /*pvUser*/); 2977 2976 2978 2977 AssertLogRelRCReturn(rc, rc);
Note:
See TracChangeset
for help on using the changeset viewer.