VirtualBox

Changeset 98661 in vbox for trunk/src/VBox/Devices/VirtIO


Ignore:
Timestamp:
Feb 20, 2023 4:31:14 PM (2 years ago)
Author:
vboxsync
Message:

Devices/DevVirtioSCSI: Possible fix for bugref:9440#c164, the queue head can get out of sync if two threads complete I/O requests concurrently

File:
1 edited

Legend:

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

    r98103 r98661  
    10491049     * Place used buffer's descriptor in used ring but don't update used ring's slot index.
    10501050     * That will be done with a subsequent client call to virtioCoreVirtqUsedRingSync()
     1051     *
     1052     * @todo r=aeichner: The increment of the shadow index is not atomic but this code can be called
     1053     *                   concurrently!!
    10511054     */
    10521055    virtioWriteUsedElem(pDevIns, pVirtio, pVirtq, pVirtq->uUsedIdxShadow++, pVirtqBuf->uHeadIdx, (uint32_t)cbTotal);
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