VirtualBox

Changeset 64810 in vbox


Ignore:
Timestamp:
Dec 8, 2016 1:57:47 PM (8 years ago)
Author:
vboxsync
Message:

Devices/Virtio: vqueuePut - don't call PDMDevHlpPCIPhysWrite with zero
cbSegLen, it asserts that down the call chain.

File:
1 edited

Legend:

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

    r64809 r64810  
    230230        if (pElem->aSegsIn[i].pv)
    231231        {
    232             Log2(("%s vqueuePut: %s used_idx=%u seg=%u addr=%p pv=%p cb=%u acb=%u\n", INSTANCE(pState),
    233                   QUEUENAME(pState, pQueue), pQueue->uNextUsedIndex, i, pElem->aSegsIn[i].addr, pElem->aSegsIn[i].pv, pElem->aSegsIn[i].cb, cbSegLen));
    234             PDMDevHlpPCIPhysWrite(pState->CTX_SUFF(pDevIns), pElem->aSegsIn[i].addr + cbReserved,
    235                                   pElem->aSegsIn[i].pv, cbSegLen);
     232            if (cbSegLen > 0)
     233            {
     234                Log2(("%s vqueuePut: %s used_idx=%u seg=%u addr=%p pv=%p cb=%u acb=%u\n", INSTANCE(pState),
     235                      QUEUENAME(pState, pQueue), pQueue->uNextUsedIndex, i, pElem->aSegsIn[i].addr, pElem->aSegsIn[i].pv, pElem->aSegsIn[i].cb, cbSegLen));
     236                PDMDevHlpPCIPhysWrite(pState->CTX_SUFF(pDevIns), pElem->aSegsIn[i].addr + cbReserved,
     237                                      pElem->aSegsIn[i].pv, cbSegLen);
     238            }
    236239            cbReserved = 0;
    237240        }
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