VirtualBox

Changeset 7865 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 10, 2008 12:21:06 PM (17 years ago)
Author:
vboxsync
Message:

Eliminate edge case where pVM->pgm.s.GCPhysCR3 would get out of sync. (VT-x & PAE only so far)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r7715 r7865  
    3232#include <VBox/rem.h>
    3333#include <VBox/em.h>
     34#include <VBox/hwaccm.h>
    3435#include "PGMInternal.h"
    3536#include <VBox/vm.h>
     
    916917     * we may still be called because of REM not caring/knowing this.
    917918     * REM is simple and we wish to keep it that way.
    918      */
    919     if (pVM->pgm.s.enmGuestMode <= PGMMODE_PROTECTED)
     919     *
     920     * Note: We need to execute everything in hwaccm mode otherwise GCPhysCR3 can get out of sync.
     921     *       (VT-x and switching between 32 bits paging & PAE hits this case)
     922     */
     923    if (    pVM->pgm.s.enmGuestMode <= PGMMODE_PROTECTED
     924        &&  !HWACCMIsEnabled(pVM))
    920925        return VINF_SUCCESS;
     926
    921927    LogFlow(("PGMFlushTLB: cr3=%#x OldCr3=%#x fGlobal=%d\n", cr3, pVM->pgm.s.GCPhysCR3, fGlobal));
    922928    STAM_PROFILE_START(&pVM->pgm.s.StatFlushTLB, a);
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