VirtualBox

Changeset 52692 in vbox


Ignore:
Timestamp:
Sep 11, 2014 11:46:59 AM (10 years ago)
Author:
vboxsync
Message:

VMM: properly restore A20 from the saved state (fixes potential misbehavior after restoring a VM from a saved state with A20 disabled)

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

Legend:

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

    r51855 r52692  
    38573857    {
    38583858        pVCpu->pgm.s.fA20Enabled = fEnable;
    3859         pVCpu->pgm.s.GCPhysA20Mask = ~(RTGCPHYS)(!fEnable << 20);
     3859        pVCpu->pgm.s.GCPhysA20Mask = ~((RTGCPHYS)!fEnable << 20);
    38603860#ifdef VBOX_WITH_REM
    38613861        REMR3A20Set(pVCpu->pVMR3, pVCpu, fEnable);
  • trunk/src/VBox/VMM/VMMR3/PGMSavedState.cpp

    r47786 r52692  
    30753075     */
    30763076    for (VMCPUID i = 0; i < pVM->cCpus; i++)
    3077         pVM->aCpus[i].pgm.s.GCPhysA20Mask = ~(RTGCPHYS)(!pVM->aCpus[i].pgm.s.fA20Enabled << 20);
     3077    {
     3078        PVMCPU pVCpu = &pVM->aCpus[i];
     3079        pVCpu->pgm.s.GCPhysA20Mask = ~((RTGCPHYS)!pVM->aCpus[i].pgm.s.fA20Enabled << 20);
     3080        pgmR3RefreshShadowModeAfterA20Change(pVCpu);
     3081    }
    30783082
    30793083    /*
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