VirtualBox

Changeset 12524 in vbox for trunk/src


Ignore:
Timestamp:
Sep 17, 2008 8:06:35 AM (16 years ago)
Author:
vboxsync
Message:

Don't overflow the release log with IDT gate disabled messages.

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

Legend:

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

    r11929 r12524  
    49634963            {
    49644964                TRPMR3SetGuestTrapHandler(pVM, iGate, TRPM_INVALID_HANDLER);
    4965                 LogRel(("PATM: Disabling IDT %x patch handler %VRv\n", iGate, pInstrGC));
     4965                if (++pVM->patm.s.cGateDisabled < 256)
     4966                    LogRel(("PATM: Disabling IDT %x patch handler %VRv\n", iGate, pInstrGC));
    49664967            }
    49674968        }
  • trunk/src/VBox/VMM/PATM/PATMInternal.h

    r11967 r12524  
    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;
    436439
    437440    /* Temporary information for pending MMIO patch. Set in GC or R0 context. */
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