VirtualBox

Changeset 6260 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Jan 7, 2008 11:30:01 AM (17 years ago)
Author:
vboxsync
Message:

VMMDev: changed IRQ logging from #ifdef DEBUG_sunlover to Log3, as it is potentially interesting for other people as well :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r6160 r6260  
    1919/* #define LOG_ENABLED */
    2020
     21/* Enable dev_vmm Log3 statements to get IRQ-related logging. */
     22
    2123#include <stdio.h>
    2224#include <string.h>
     
    152154    PPDMDEVINS pDevIns = VMMDEVSTATE_2_DEVINS (pVMMDevState);
    153155
    154 #ifdef DEBUG_sunlover
    155     Log(("vmmdevMaybeSetIRQ_EMT: u32HostEventFlags = 0x%08X, u32GuestFilterMask = 0x%08X.\n",
     156    Log3(("vmmdevMaybeSetIRQ_EMT: u32HostEventFlags = 0x%08X, u32GuestFilterMask = 0x%08X.\n",
    156157          pVMMDevState->u32HostEventFlags, pVMMDevState->u32GuestFilterMask));
    157 #endif /* DEBUG_sunlover */
    158158
    159159    if (pVMMDevState->u32HostEventFlags & pVMMDevState->u32GuestFilterMask)
     
    161161        pVMMDevState->pVMMDevRAMHC->V.V1_04.fHaveEvents = true;
    162162        PDMDevHlpPCISetIrqNoWait (pDevIns, 0, 1);
    163 #ifdef DEBUG_sunlover
    164         Log(("vmmdevMaybeSetIRQ_EMT: IRQ set.\n"));
    165 #endif /* DEBUG_sunlover */
     163        Log3(("vmmdevMaybeSetIRQ_EMT: IRQ set.\n"));
    166164    }
    167165}
     
    169167static void vmmdevNotifyGuest_EMT (VMMDevState *pVMMDevState, uint32_t u32EventMask)
    170168{
    171 #ifdef DEBUG_sunlover
    172     Log(("VMMDevNotifyGuest_EMT: u32EventMask = 0x%08X.\n", u32EventMask));
    173 #endif /* DEBUG_sunlover */
     169    Log3(("VMMDevNotifyGuest_EMT: u32EventMask = 0x%08X.\n", u32EventMask));
    174170
    175171    if (VBOX_GUEST_ADDITIONS_VERSION_1_03 (pVMMDevState))
    176172    {
    177 #ifdef DEBUG_sunlover
    178         Log(("VMMDevNotifyGuest_EMT: Old additions detected.\n"));
    179 #endif /* DEBUG_sunlover */
     173        Log3(("VMMDevNotifyGuest_EMT: Old additions detected.\n"));
    180174
    181175        pVMMDevState->u32HostEventFlags |= u32EventMask;
     
    184178    else
    185179    {
    186 #ifdef DEBUG_sunlover
    187         Log(("VMMDevNotifyGuest_EMT: New additions detected.\n"));
    188 #endif /* DEBUG_sunlover */
     180        Log3(("VMMDevNotifyGuest_EMT: New additions detected.\n"));
    189181
    190182        if (!pVMMDevState->fu32AdditionsOk)
     
    198190            (pVMMDevState->u32HostEventFlags & pVMMDevState->u32GuestFilterMask) != 0;
    199191
    200 #ifdef DEBUG_sunlover
    201         Log(("VMMDevNotifyGuest_EMT: fHadEvents = %d, u32HostEventFlags = 0x%08X, u32GuestFilterMask = 0x%08X.\n",
     192        Log3(("VMMDevNotifyGuest_EMT: fHadEvents = %d, u32HostEventFlags = 0x%08X, u32GuestFilterMask = 0x%08X.\n",
    202193              fHadEvents, pVMMDevState->u32HostEventFlags, pVMMDevState->u32GuestFilterMask));
    203 #endif /* DEBUG_sunlover */
    204194
    205195        pVMMDevState->u32HostEventFlags |= u32EventMask;
     
    268258    PVMREQ pReq;
    269259
    270 #ifdef DEBUG_sunlover
    271     Log(("VMMDevNotifyGuest: u32EventMask = 0x%08X.\n", u32EventMask));
    272 #endif /* DEBUG_sunlover */
     260    Log3(("VMMDevNotifyGuest: u32EventMask = 0x%08X.\n", u32EventMask));
    273261
    274262    rc = VMR3ReqCallVoid (pVM, &pReq, RT_INDEFINITE_WAIT,
     
    17921780    }
    17931781
    1794 #ifdef DEBUG_sunlover
    1795     Log(("vmmdevRequestDisplayChange: same=%d. new: xres=%d, yres=%d, bpp=%d, display=%d. old: xres=%d, yres=%d, bpp=%d, display=%d.\n",
     1782    Log3(("vmmdevRequestDisplayChange: same=%d. new: xres=%d, yres=%d, bpp=%d, display=%d. old: xres=%d, yres=%d, bpp=%d, display=%d.\n",
    17961783          fSameResolution, xres, yres, bpp, display, pData->lastReadDisplayChangeRequest.xres, pData->lastReadDisplayChangeRequest.yres, pData->lastReadDisplayChangeRequest.bpp, pData->lastReadDisplayChangeRequest.display));
    1797 #endif /* DEBUG_sunlover */
    17981784
    17991785    if (!fSameResolution)
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