VirtualBox

Changeset 29293 in vbox for trunk/src


Ignore:
Timestamp:
May 10, 2010 11:14:48 AM (15 years ago)
Author:
vboxsync
Message:

MMIORegister/Deregister: Force a PGM pool flush as guest ram references have been changed.

File:
1 edited

Legend:

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

    r29201 r29293  
    15901590        }
    15911591        AssertRCReturn(rc, rc);
     1592
     1593        /* Force a PGM pool flush as guest ram references have been changed. */
     1594        /** todo; not entirely SMP safe; assuming for now the guest takes care of this internally (not touch mapped mmio while changing the mapping). */
     1595        PVMCPU pVCpu = VMMGetCpu(pVM);
     1596        pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_CLEAR_PGM_POOL;
     1597        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
    15921598    }
    15931599    else
     
    17591765        }
    17601766    }
     1767
     1768    /* Force a PGM pool flush as guest ram references have been changed. */
     1769    /** todo; not entirely SMP safe; assuming for now the guest takes care of this internally (not touch mapped mmio while changing the mapping). */
     1770    PVMCPU pVCpu = VMMGetCpu(pVM);
     1771    pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_CLEAR_PGM_POOL;
     1772    VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
    17611773
    17621774    PGMPhysInvalidatePageMapTLB(pVM);
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