Changeset 107227 in vbox for trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
- Timestamp:
- Dec 4, 2024 3:20:14 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r107194 r107227 6322 6322 *********************************************************************************************************************************/ 6323 6323 6324 #if !defined(VBOX_VMM_TARGET_ARMV8)6324 #ifdef VBOX_VMM_TARGET_X86 6325 6325 /** 6326 6326 * Sets the Address Gate 20 state. … … 6335 6335 if (pVCpu->pgm.s.fA20Enabled != fEnable) 6336 6336 { 6337 # ifdef VBOX_WITH_NESTED_HWVIRT_VMX6337 # ifdef VBOX_WITH_NESTED_HWVIRT_VMX 6338 6338 PCCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu); 6339 6339 if ( CPUMIsGuestInVmxRootMode(pCtx) … … 6343 6343 return; 6344 6344 } 6345 # endif6345 # endif 6346 6346 pVCpu->pgm.s.fA20Enabled = fEnable; 6347 6347 pVCpu->pgm.s.GCPhysA20Mask = ~((RTGCPHYS)!fEnable << 20); 6348 6348 if (VM_IS_NEM_ENABLED(pVCpu->CTX_SUFF(pVM))) 6349 6349 NEMR3NotifySetA20(pVCpu, fEnable); 6350 # ifdef PGM_WITH_A206350 # ifdef PGM_WITH_A20 6351 6351 VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3); 6352 6352 pgmR3RefreshShadowModeAfterA20Change(pVCpu); 6353 6353 HMFlushTlb(pVCpu); 6354 # endif6355 # if 0 /* PGMGetPage will apply the A20 mask to the GCPhys it returns, so we must invalid both sides of the TLB. */6354 # endif 6355 # if 0 /* PGMGetPage will apply the A20 mask to the GCPhys it returns, so we must invalid both sides of the TLB. */ 6356 6356 IEMTlbInvalidateAllPhysical(pVCpu); 6357 # else6357 # else 6358 6358 IEMTlbInvalidateAllGlobal(pVCpu); 6359 # endif6359 # endif 6360 6360 STAM_REL_COUNTER_INC(&pVCpu->pgm.s.cA20Changes); 6361 6361 } 6362 6362 } 6363 #endif 6364 6363 #endif /* VBOX_VMM_TARGET_X86 */ 6364
Note:
See TracChangeset
for help on using the changeset viewer.