VirtualBox

Changeset 29296 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 10, 2010 11:42:36 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61383
Message:

Set the clear flag on all VCPUs

File:
1 edited

Legend:

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

    r29295 r29296  
    15931593        /* Force a PGM pool flush as guest ram references have been changed. */
    15941594        /** 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);
     1595        for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
     1596        {
     1597            PVMCPU pVCpu = &pVM->aCpus[idCpu];
     1598
     1599            pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_CLEAR_PGM_POOL;
     1600            VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
     1601        }
    15981602    }
    15991603    else
     
    17681772    /* Force a PGM pool flush as guest ram references have been changed. */
    17691773    /** 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);
     1774    for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
     1775    {
     1776        PVMCPU pVCpu = &pVM->aCpus[idCpu];
     1777
     1778        pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_CLEAR_PGM_POOL;
     1779        VMCPU_FF_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3);
     1780    }
    17731781
    17741782    PGMPhysInvalidatePageMapTLB(pVM);
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