Changeset 20796 in vbox
- Timestamp:
- Jun 22, 2009 6:57:52 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/VMM/PGMMap.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMMap.cpp
r19679 r20796 677 677 PVMCPU pVCpu = &pVM->aCpus[0]; 678 678 679 pgmLock(pVM); /* to avoid assertions */ 679 680 rc = pgmMapDeactivateCR3(pVM, pVCpu->pgm.s.pShwPageCR3R3); 681 pgmUnlock(pVM); 680 682 AssertRCReturn(rc, rc); 681 683 … … 944 946 unsigned i = pMap->cPTs; 945 947 PVMCPU pVCpu = VMMGetCpu(pVM); 948 pgmLock(pVM); /* to avoid assertions */ 946 949 947 950 pgmMapClearShadowPDEs(pVM, pVCpu->pgm.s.CTX_SUFF(pShwPageCR3), pMap, iOldPDE, false /*fDeactivateCR3*/); … … 966 969 pVM->pgm.s.apInterPaePDs[iPD]->a[iPDE].u = 0; 967 970 } 968 } 971 972 pgmUnlock(pVM); 973 } 974 969 975 970 976 /** … … 979 985 PPGM pPGM = &pVM->pgm.s; 980 986 PVMCPU pVCpu = VMMGetCpu(pVM); 987 pgmLock(pVM); /* to avoid assertions */ 981 988 982 989 Assert(!pgmMapAreMappingsEnabled(&pVM->pgm.s) || PGMGetGuestMode(pVCpu) <= PGMMODE_PAE_NX); … … 1014 1021 pPGM->apInterPaePDs[iPD]->a[iPDE] = PdePae1; 1015 1022 } 1016 } 1023 1024 pgmUnlock(pVM); 1025 } 1026 1017 1027 1018 1028 /**
Note:
See TracChangeset
for help on using the changeset viewer.

