VirtualBox

Changeset 96821 in vbox


Ignore:
Timestamp:
Sep 22, 2022 12:35:59 AM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM: Define separate log groups for the VMX and SVM code in IEM since we're more or less out of log levels to use in IEM (and the code isn't following the assignments). Defined Log2 to be for logging vmexits. Needs more cleaning up.

Location:
trunk
Files:
4 edited

Legend:

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

    r96407 r96821  
    303303    /** IEM group. */
    304304    LOG_GROUP_IEM,
     305    /** IEM AMD-V group. */
     306    LOG_GROUP_IEM_SVM,
     307    /** IEM VT-x group. */
     308    LOG_GROUP_IEM_VMX,
    305309    /** I/O buffer management group. */
    306310    LOG_GROUP_IOBUFMGMT,
     
    963967    "HM", \
    964968    "IEM", \
     969    "IEM_SVM", \
     970    "IEM_VMX", \
    965971    "IOBUFMGMT", \
    966972    "IOM", \
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r96811 r96821  
    8383 *      - Level 10 (Log10): TLBs.
    8484 *      - Level 11 (Log11): Unmasked FPU exceptions.
     85 *
     86 * The SVM (AMD-V) and VMX (VT-x) code has the following assignments:
     87 *      - Level 1  (Log)  : Errors and other major events.
     88 *      - Flow (LogFlow)  : Misc flow stuff (cleanup?)
     89 *      - Level 2  (Log2) : VM exits.
    8590 */
    8691
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplSvmInstr.cpp

    r96407 r96821  
    3030*   Header Files                                                                                                                 *
    3131*********************************************************************************************************************************/
    32 #define LOG_GROUP   LOG_GROUP_IEM
     32#define LOG_GROUP   LOG_GROUP_IEM_SVM
    3333#define VMCPU_INCL_CPUM_GST_CTX
    3434#include <VBox/vmm/iem.h>
     
    120120 * Performs an SVM world-switch (VMRUN, \#VMEXIT) updating PGM and IEM internals.
    121121 *
    122  * @returns Strict VBox status code.
     122 * @returns Strict VBox status code from PGMChangeMode.
    123123 * @param   pVCpu   The cross context virtual CPU structure.
    124124 */
     
    165165        || uExitCode == SVM_EXIT_INVALID)
    166166    {
    167         LogFlow(("iemSvmVmexit: CS:RIP=%04x:%08RX64 uExitCode=%#RX64 uExitInfo1=%#RX64 uExitInfo2=%#RX64\n",
    168                  pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, uExitCode, uExitInfo1, uExitInfo2));
     167        Log2(("iemSvmVmexit: CS:RIP=%04x:%08RX64 uExitCode=%#RX64 uExitInfo1=%#RX64 uExitInfo2=%#RX64\n",
     168              pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, uExitCode, uExitInfo1, uExitInfo2));
    169169
    170170        /*
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp

    r96762 r96821  
    3030*   Header Files                                                                                                                 *
    3131*********************************************************************************************************************************/
    32 #define LOG_GROUP   LOG_GROUP_IEM
     32#define LOG_GROUP   LOG_GROUP_IEM_VMX
    3333#define VMCPU_INCL_CPUM_GST_CTX
    3434#include <VBox/vmm/iem.h>
     
    24622462    pVmcs->u64RoExitQual.u = u64ExitQual;
    24632463
    2464     LogFlow(("vmexit: reason=%u qual=%#RX64 cs:rip=%04x:%#RX64 cr0=%#RX64 cr3=%#RX64 cr4=%#RX64 eflags=%#RX32\n", uExitReason,
    2465              pVmcs->u64RoExitQual.u, pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, pVCpu->cpum.GstCtx.cr0,
    2466              pVCpu->cpum.GstCtx.cr3, pVCpu->cpum.GstCtx.cr4, pVCpu->cpum.GstCtx.eflags.u32));
     2464    Log2(("vmexit: reason=%u qual=%#RX64 cs:rip=%04x:%#RX64 cr0=%#RX64 cr3=%#RX64 cr4=%#RX64 eflags=%#RX32\n", uExitReason,
     2465          pVmcs->u64RoExitQual.u, pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, pVCpu->cpum.GstCtx.cr0,
     2466          pVCpu->cpum.GstCtx.cr3, pVCpu->cpum.GstCtx.cr4, pVCpu->cpum.GstCtx.eflags.u32));
    24672467
    24682468    /*
     
    24972497                iemVmxVmcsSetIdtVectoringInfo(pVCpu, uIdtVectoringInfo);
    24982498                iemVmxVmcsSetIdtVectoringErrCode(pVCpu, uErrCode);
    2499                 LogFlow(("vmexit: idt_info=%#RX32 idt_err_code=%#RX32 cr2=%#RX64\n", uIdtVectoringInfo, uErrCode,
    2500                          pVCpu->cpum.GstCtx.cr2));
     2499                Log2(("vmexit: idt_info=%#RX32 idt_err_code=%#RX32 cr2=%#RX64\n", uIdtVectoringInfo, uErrCode,
     2500                      pVCpu->cpum.GstCtx.cr2));
    25012501            }
    25022502        }
     
    26042604    }
    26052605    else
    2606         Log3(("vmexit: Loading host-state failed. uExitReason=%u rc=%Rrc\n", uExitReason, VBOXSTRICTRC_VAL(rcStrict)));
     2606        Log(("vmexit: Loading host-state failed. uExitReason=%u rc=%Rrc\n", uExitReason, VBOXSTRICTRC_VAL(rcStrict)));
    26072607
    26082608    if (VM_IS_HM_ENABLED(pVCpu->CTX_SUFF(pVM)))
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