VirtualBox

Changeset 29297 in vbox


Ignore:
Timestamp:
May 10, 2010 12:03:50 PM (15 years ago)
Author:
vboxsync
Message:

Same goes for map/unmap

File:
1 edited

Legend:

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

    r29296 r29297  
    21692169        }
    21702170        GMMR3FreePagesCleanup(pReq);
     2171
     2172        /* Force a PGM pool flush as guest ram references have been changed. */
     2173        /** todo; not entirely SMP safe; assuming for now the guest takes care of this internally (not touch mapped mmio while changing the mapping). */
     2174        for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
     2175        {
     2176            PVMCPU pVCpu = &pVM->aCpus[idCpu];
     2177
     2178            pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_CLEAR_PGM_POOL;
     2179            VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
     2180        }
     2181
    21712182        pgmUnlock(pVM);
    21722183    }
     
    22662277    pCur->fOverlapping = false;
    22672278    pCur->fMapped = false;
     2279
     2280    /* Force a PGM pool flush as guest ram references have been changed. */
     2281    /** todo; not entirely SMP safe; assuming for now the guest takes care of this internally (not touch mapped mmio while changing the mapping). */
     2282    for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
     2283    {
     2284        PVMCPU pVCpu = &pVM->aCpus[idCpu];
     2285
     2286        pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_CLEAR_PGM_POOL;
     2287        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
     2288    }
    22682289
    22692290    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