VirtualBox

Ignore:
Timestamp:
Apr 16, 2009 11:41:38 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46003
Message:

Big step to separate VMM data structures for guest SMP. (pgm, em)

File:
1 edited

Legend:

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

    r18665 r18927  
    389389        {
    390390            pVM->pgm.s.fPhysCacheFlushPending = true;
    391             pVM->pgm.s.fSyncFlags |= PGM_SYNC_UPDATE_PAGE_BIT_VIRTUAL | PGM_SYNC_CLEAR_PGM_POOL;
    392             VM_FF_SET(pVM, VM_FF_PGM_SYNC_CR3);
     391            for (unsigned i=0;i<pVM->cCPUs;i++)
     392            {
     393                PVMCPU pVCpu = &pVM->aCpus[i];
     394
     395                pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_UPDATE_PAGE_BIT_VIRTUAL | PGM_SYNC_CLEAR_PGM_POOL;
     396                VM_FF_SET(pVM, VM_FF_PGM_SYNC_CR3);
     397            }
    393398        }
    394399        pgmUnlock(pVM);
     
    469474         * Schedule CR3 sync.
    470475         */
    471         pVM->pgm.s.fSyncFlags |= PGM_SYNC_UPDATE_PAGE_BIT_VIRTUAL | PGM_SYNC_CLEAR_PGM_POOL;
    472         VM_FF_SET(pVM, VM_FF_PGM_SYNC_CR3);
     476        for (unsigned i=0;i<pVM->cCPUs;i++)
     477        {
     478            PVMCPU pVCpu = &pVM->aCpus[i];
     479
     480            pVCpu->pgm.s.fSyncFlags |= PGM_SYNC_UPDATE_PAGE_BIT_VIRTUAL | PGM_SYNC_CLEAR_PGM_POOL;
     481            VM_FF_SET(pVM, VM_FF_PGM_SYNC_CR3);
     482        }
    473483    }
    474484    else
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