VirtualBox

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


Ignore:
Timestamp:
Jan 26, 2017 9:42:39 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113096
Message:

PGM: Reset GCPhysCR3 when unmapping CR3.

File:
1 edited

Legend:

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

    r65466 r65470  
    25482548    int rc = PGM_GST_PFN(Exit, pVCpu)(pVCpu);
    25492549    AssertRC(rc);
     2550    pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
    25502551
    25512552    rc = PGMR3ChangeMode(pVM, pVCpu, PGMMODE_REAL);
     
    26022603        int rc = PGM_GST_PFN(Exit, pVCpu)(pVCpu);
    26032604        AssertReleaseRC(rc);
     2605        pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
    26042606    }
    26052607
     
    35123514        }
    35133515    }
     3516    pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
    35143517
    35153518    /*
     
    37383741    int rc = PGM_BTH_PFN(UnmapCR3, pVCpu)(pVCpu);
    37393742    AssertRC(rc);
     3743    pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
    37403744
    37413745    /* Exit the current shadow paging mode as well; nested paging and EPT use a root CR3 which will get flushed here. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette