VirtualBox

Changeset 4268 in vbox


Ignore:
Timestamp:
Aug 21, 2007 5:10:47 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23778
Message:

Record invlpg occurrences in ring 0 too.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

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

    r4207 r4268  
    526526PGMDECL(int) PGMInvalidatePage(PVM pVM, RTGCPTR GCPtrPage)
    527527{
     528    int rc;
     529
    528530    LogFlow(("PGMInvalidatePage: GCPtrPage=%VGv\n", GCPtrPage));
    529531
     532    /** @todo merge PGMGCInvalidatePage with this one */
     533
     534#ifndef IN_RING3
     535    /*
     536     * Notify the recompiler so it can record this instruction.
     537     * Failure happens when it's out of space. We'll return to HC in that case.
     538     */
     539    rc = REMNotifyInvalidatePage(pVM, GCPtrPage);
     540    if (VBOX_FAILURE(rc))
     541        return rc;
     542#endif
     543
    530544    STAM_PROFILE_START(&CTXMID(pVM->pgm.s.Stat,InvalidatePage), a);
    531     int rc = PGM_BTH_PFN(InvalidatePage, pVM)(pVM, GCPtrPage);
     545    rc = PGM_BTH_PFN(InvalidatePage, pVM)(pVM, GCPtrPage);
    532546    STAM_PROFILE_STOP(&CTXMID(pVM->pgm.s.Stat,InvalidatePage), a);
    533547
  • trunk/src/VBox/VMM/VMMAll/REMAll.cpp

    r4071 r4268  
    5050        return VINF_SUCCESS;
    5151    }
     52    /* Note: another option is to signal a TLB flush for the recompiler */
    5253    return VERR_REM_FLUSHED_PAGES_OVERFLOW;
    5354}
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