VirtualBox

Ignore:
Timestamp:
Jul 8, 2008 12:06:18 PM (16 years ago)
Author:
vboxsync
Message:

Flush the recompiler's TLB when our invlpg replay array overflows.

File:
1 edited

Legend:

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

    r8155 r10357  
    5252         */
    5353        pVM->rem.s.aGCPtrInvalidatedPages[pVM->rem.s.cInvalidatedPages++] = GCPtrPage;
    54         return VINF_SUCCESS;
    5554    }
    56     /* Note: another option is to signal a TLB flush for the recompiler */
    57     return VERR_REM_FLUSHED_PAGES_OVERFLOW;
     55    else
     56    {
     57        /* Tell the recompiler to flush its TLB. */
     58        CPUMSetChangedFlags(pVM, CPUM_CHANGED_GLOBAL_TLB_FLUSH);
     59        pVM->rem.s.cInvalidatedPages = 0;
     60    }
     61
     62    return VINF_SUCCESS;
    5863}
    5964
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