VirtualBox

Changeset 12532 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Sep 17, 2008 9:46:38 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36691
Message:

Backed out previous changes for PATM logging. Breaks saved states.
Rewrote the patch.

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

Legend:

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

    r12524 r12532  
    9797#endif
    9898
     99/* Don't want to break saved states, so put it here as a global variable. */
     100static int cIDTHandlersDisabled = 0;
     101
    99102/**
    100103 * Initializes the PATM.
     
    49634966            {
    49644967                TRPMR3SetGuestTrapHandler(pVM, iGate, TRPM_INVALID_HANDLER);
    4965                 if (++pVM->patm.s.cGateDisabled < 256)
     4968                if (++cIDTHandlersDisabled < 256)
    49664969                    LogRel(("PATM: Disabling IDT %x patch handler %VRv\n", iGate, pInstrGC));
    49674970            }
  • trunk/src/VBox/VMM/PATM/PATMInternal.h

    r12527 r12532  
    434434    // GC address of fault in monitored page (set by PATMGCMonitorPage, used by PATMR3HandleMonitoredPage)
    435435    RTRCPTR                 pvFaultMonitor;
    436 
    437     /* Counter for disabled IDT gates (in order not to overflow the release log).*/
    438     uint32_t                cGateDisabled;
    439 
    440 #if HC_ARCH_BITS == 64
    441     uint32_t                Alignment0;
    442 #endif
    443436
    444437    /* Temporary information for pending MMIO patch. Set in GC or R0 context. */
     
    517510    STAMCOUNTER             StatFunctionLookupInsert;
    518511    uint32_t                StatU32FunctionMaxSlotsUsed;
    519     uint32_t                Alignment1; /**< Align the structure size on a 8-byte boundrary. */
     512    uint32_t                Alignment0; /**< Align the structure size on a 8-byte boundrary. */
    520513} PATM, *PPATM;
    521514
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