VirtualBox

Changeset 100672 in vbox for trunk


Ignore:
Timestamp:
Jul 21, 2023 12:28:54 AM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158512
Message:

VMM/IEM: Some VxD syscall logging. bugref:10369

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r100606 r100672  
    309309    /** IEM AMD-V group. */
    310310    LOG_GROUP_IEM_SVM,
     311    /** IEM syscall decoding group (log levels for individual OSes). */
     312    LOG_GROUP_IEM_SYSCALL,
    311313    /** IEM VT-x group. */
    312314    LOG_GROUP_IEM_VMX,
     
    972974    "IEM_RE_THREADED", \
    973975    "IEM_SVM", \
     976    "IEM_SYSCALL", \
    974977    "IEM_VMX", \
    975978    "IOBUFMGMT", \
  • trunk/include/iprt/log.h

    r100006 r100672  
    633633# define LogIsItEnabled(a_fFlags, a_iGroup) (false)
    634634#endif
     635
     636/** @def LogIsEnabledOnly
     637 * Checks whether the group is enabled w/o reference to any specific level.
     638 */
     639#define LogIsEnabledOnly()  LogIsItEnabled(RTLOGGRPFLAGS_ENABLED, LOG_GROUP)
    635640
    636641/** @def LogIsEnabled
  • trunk/src/VBox/VMM/Makefile.kmk

    r100150 r100672  
    197197        VMMAll/IEMAllCImplSvmInstr.cpp \
    198198        VMMAll/IEMAllCImplVmxInstr.cpp \
     199        VMMAll/IEMAllDbg.cpp \
    199200        VMMAll/IOMAll.cpp \
    200201        VMMAll/IOMAllMmioNew.cpp \
     
    776777        VMMAll/IEMAllCImplSvmInstr.cpp \
    777778        VMMAll/IEMAllCImplVmxInstr.cpp \
     779        VMMAll/IEMAllDbg.cpp \
    778780        VMMAll/IOMAll.cpp \
    779781        VMMAll/IOMAllMmioNew.cpp \
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r100626 r100672  
    8888 *      - Flow (LogFlow)  : Misc flow stuff (cleanup?)
    8989 *      - Level 2  (Log2) : VM exits.
     90 *
     91 * The syscall logging level assignments:
     92 *      - Level 1: DOS and BIOS.
     93 *      - Level 2: Windows 3.x
     94 *      - Level 3: Linux.
    9095 */
    9196
     
    32513256        return iemRaiseSelectorNotPresentBySelector(pVCpu, NewCS);
    32523257    }
     3258
     3259#ifdef LOG_ENABLED
     3260    /* If software interrupt, try decode it if logging is enabled and such. */
     3261    if (   (fFlags & IEM_XCPT_FLAGS_T_SOFT_INT)
     3262        && LogIsItEnabled(RTLOGGRPFLAGS_ENABLED, LOG_GROUP_IEM_SYSCALL))
     3263        iemLogSyscallProtModeInt(pVCpu, u8Vector, cbInstr);
     3264#endif
    32533265
    32543266    /* Check the new EIP against the new CS limit. */
  • trunk/src/VBox/VMM/include/IEMInternal.h

    r100607 r100672  
    42244224#endif
    42254225VBOXSTRICTRC            iemRaiseSimdFpException(PVMCPUCC pVCpu) RT_NOEXCEPT;
     4226
     4227void                    iemLogSyscallProtModeInt(PVMCPUCC pVCpu, uint8_t u8Vector, uint8_t cbInstr);
    42264228
    42274229IEM_CIMPL_DEF_0(iemCImplRaiseDivideError);
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