VirtualBox

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


Ignore:
Timestamp:
Feb 28, 2017 3:00:12 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113694
Message:

Reapplied r113096 (backed out in r113137) in disabled form so it's not forgotten/lost: PGM: Reset GCPhysCR3 when unmapping CR3.

File:
1 edited

Legend:

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

    r65900 r65902  
    25492549    int rc = PGM_GST_PFN(Exit, pVCpu)(pVCpu);
    25502550    AssertRC(rc);
     2551#ifdef REMEMBER_TO_ENABLE_THESE_GCPhycCR3_NIL_ASSIGNMENTS /** @todo Enable r113096 and fix. */
     2552    pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
     2553#endif
    25512554
    25522555    rc = PGMR3ChangeMode(pVM, pVCpu, PGMMODE_REAL);
     
    26032606        int rc = PGM_GST_PFN(Exit, pVCpu)(pVCpu);
    26042607        AssertReleaseRC(rc);
     2608#ifdef REMEMBER_TO_ENABLE_THESE_GCPhycCR3_NIL_ASSIGNMENTS /** @todo Enable r113096 and fix. */
     2609        pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
     2610#endif
    26052611    }
    26062612
     
    35143520        }
    35153521    }
     3522#ifdef REMEMBER_TO_ENABLE_THESE_GCPhycCR3_NIL_ASSIGNMENTS /** @todo Enable r113096 and fix. */
     3523    pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
     3524#endif
    35163525
    35173526    /*
     
    37403749    int rc = PGM_BTH_PFN(UnmapCR3, pVCpu)(pVCpu);
    37413750    AssertRC(rc);
     3751#ifdef REMEMBER_TO_ENABLE_THESE_GCPhycCR3_NIL_ASSIGNMENTS /** @todo Enable r113096 and fix. */
     3752    pVCpu->pgm.s.GCPhysCR3 = NIL_RTGCPHYS;
     3753#endif
    37423754
    37433755    /* 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