VirtualBox

Changeset 28862 in vbox


Ignore:
Timestamp:
Apr 28, 2010 11:56:59 AM (15 years ago)
Author:
vboxsync
Message:

Test fix for pgm pool gurus with smp guests

File:
1 edited

Legend:

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

    r28840 r28862  
    34073407             pPool->cUsedPages, pPool->cPresent, pPhysPage));
    34083408
    3409 #if 1
    34103409    /*
    34113410     * There is a limit to what makes sense.
    34123411     */
    3413     if (pPool->cPresent > 1024)
     3412    if (    pPool->cPresent > 1024
     3413        &&  pVM->cCpus == 1)
    34143414    {
    34153415        LogFlow(("pgmPoolTrackFlushGCPhysPTsSlow: giving up... (cPresent=%d)\n", pPool->cPresent));
     
    34173417        return VINF_PGM_GCPHYS_ALIASED;
    34183418    }
    3419 #endif
    34203419
    34213420    /*
     
    35243523    PGM_PAGE_SET_TRACKING(pPhysPage, 0);
    35253524    STAM_PROFILE_STOP(&pPool->StatTrackFlushGCPhysPTsSlow, s);
     3525
     3526    /*
     3527     * There is a limit to what makes sense. The above search is very expensive, so force a pgm pool flush.
     3528     */
     3529    if (pPool->cPresent > 1024)
     3530    {
     3531        LogFlow(("pgmPoolTrackFlushGCPhysPTsSlow: giving up... (cPresent=%d)\n", pPool->cPresent));
     3532        return VINF_PGM_GCPHYS_ALIASED;
     3533    }
     3534
    35263535    return VINF_SUCCESS;
    35273536}
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