VirtualBox

Changeset 25551 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Dec 21, 2009 5:22:45 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56227
Message:

Removed the obsolete RC tlb flushing in the pgm pool access handler. Our disassembler can now deal with flushed tlb entries.
(watch for regressions!)

File:
1 edited

Legend:

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

    r25547 r25551  
    908908        rc = rc2;
    909909
    910 #ifdef IN_RC
    911     /* See use in pgmPoolAccessHandlerSimple(). */
    912     PGM_INVL_VCPU_TLBS(pVCpu);
    913 #endif
    914910    LogFlow(("pgmPoolAccessHandlerPT: returns %Rrc (flushed)\n", rc));
    915911    return rc;
     
    981977    pRegFrame->rip += pDis->opsize;
    982978
    983 #ifdef IN_RC
    984     /* See use in pgmPoolAccessHandlerSimple(). */
    985     PGM_INVL_VCPU_TLBS(pVCpu);
    986 #endif
    987 
    988979    LogFlow(("pgmPoolAccessHandlerSTOSD: returns\n"));
    989980    return VINF_SUCCESS;
     
    10701061        }
    10711062    }
    1072 #endif
    1073 
    1074 #ifdef IN_RC
    1075     /*
    1076      * Quick hack, with logging enabled we're getting stale
    1077      * code TLBs but no data TLB for EIP and crash in EMInterpretDisasOne.
    1078      * Flushing here is BAD and expensive, I think EMInterpretDisasOne will
    1079      * have to be fixed to support this. But that'll have to wait till next week.
    1080      *
    1081      * An alternative is to keep track of the changed PTEs together with the
    1082      * GCPhys from the guest PT. This may proove expensive though.
    1083      *
    1084      * At the moment, it's VITAL that it's done AFTER the instruction interpreting
    1085      * because we need the stale TLBs in some cases (XP boot). This MUST be fixed properly!
    1086      */
    1087     PGM_INVL_VCPU_TLBS(pVCpu);
    10881063#endif
    10891064
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