VirtualBox

Ignore:
Timestamp:
Aug 27, 2019 8:44:58 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132925
Message:

Storage/DevVirtioSCSI.cpp: Basic round-trip I/O implemented for request and control commands. Debugging and refining this. See bugref:9440, Comment 56 for more information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/Virtio_1_0.h

    r80383 r80437  
    3737#define VIRTQ_MAX_SIZE                      1024                 /**< Max size (# desc elements) of a virtq    */
    3838#define VIRTQ_MAX_CNT                       24                   /**< Max queues we allow guest to create      */
    39 
    4039#define VIRTIO_NOTIFY_OFFSET_MULTIPLIER     2                    /**< VirtIO Notify Cap. MMIO config param     */
    4140#define VIRTIOSCSI_REGION_MEM_IO            0                    /**< BAR for MMIO (implementation specific)   */
     
    214213 * @param hVirtio   - Handle for VirtIO framework
    215214 * @param qIdx      - Queue number
     215 * @param pSgBuf    - Caller's sgbuf of one or more virtual memory segments
     216 *                    to write to the queue. This is useful because some kinds
     217 *                    of transactions involve variable length sub-components
     218 *                    whose size can only be known near the time of writing.
     219 * @parame fFence   - If set put up copy fence (memory barrier) after
     220 *                    copying to guest phys. mem.
    216221 *
    217222 * @returns           VINF_SUCCESS         - Success
     
    219224 *                    VERR_NOT_AVAILABLE   - Queue is empty
    220225 */
    221 int virtioQueuePut(VIRTIOHANDLE hVirtio, uint16_t qIdx, uint32_t cb);
     226int virtioQueuePut(VIRTIOHANDLE hVirtio, uint16_t qIdx, PRTSGBUF pSgBuf, bool fFence);
    222227
    223228/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette