VirtualBox

Changeset 92945 in vbox for trunk


Ignore:
Timestamp:
Dec 15, 2021 5:10:24 PM (3 years ago)
Author:
vboxsync
Message:

Fix burns (7)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp

    r92943 r92945  
    144144static int  virtioNudgeGuest(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint8_t uCause, uint16_t uVec);
    145145
    146 #ifdef LOG_ENABLED
     146#ifdef IN_RING3
     147#  ifdef LOG_ENABLED
    147148DECLINLINE(uint16_t) virtioCoreR3CountPendingBufs(uint16_t uRingIdx, uint16_t uShadowIdx, uint16_t uQueueSize)
    148149{
     
    154155    return uQueueSize - (uRingIdx - uShadowIdx);
    155156}
    156 #endif
    157 
     157#  endif
     158#endif
    158159/** @name Internal queue operations
    159160 * @{ */
     
    10141015    Log6Func(("    Copying device data to %s, [desc chain head idx:%u]\n",
    10151016              VIRTQNAME(pVirtio, uVirtq), pVirtqBuf->uHeadIdx));
    1016 
    10171017    /*
    10181018     * Convert virtual memory simple buffer to guest physical memory (VirtIO descriptor chain)
     
    20782078    AssertRCReturn(rc, rc);
    20792079
    2080     uint32_t cQueues = 3; /* Thes constant default value copied from earliest v0.9 code */
     2080    uint32_t cQueues = 3; /* This constant default value copied from earliest v0.9 code */
    20812081    if (uVersion > uVirtioLegacy_3_1_Beta)
    20822082    {
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