summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/virtio_blk.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin2015-03-06 03:20:03 +0100
committerRusty Russell2015-03-10 02:18:29 +0100
commit0fa2a56437d0b7ef5d86eef2778ad3469ca72d5a (patch)
treebb17079e2d158840c80dd7f53adb03385ecfd414 /include/uapi/linux/virtio_blk.h
parentvirtio_blk: typo fix (diff)
downloadkernel-qcow2-linux-0fa2a56437d0b7ef5d86eef2778ad3469ca72d5a.tar.gz
kernel-qcow2-linux-0fa2a56437d0b7ef5d86eef2778ad3469ca72d5a.tar.xz
kernel-qcow2-linux-0fa2a56437d0b7ef5d86eef2778ad3469ca72d5a.zip
virtio_blk: fix comment for virtio 1.0
Fix up comment to match virtio 1.0 logic: virtio_blk_outhdr isn't the first elements anymore, the only requirement is that it comes first in the s/g list. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/uapi/linux/virtio_blk.h')
-rw-r--r--include/uapi/linux/virtio_blk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_blk.h b/include/uapi/linux/virtio_blk.h
index b695ba959186..19c66fcbab8a 100644
--- a/include/uapi/linux/virtio_blk.h
+++ b/include/uapi/linux/virtio_blk.h
@@ -119,7 +119,11 @@ struct virtio_blk_config {
#define VIRTIO_BLK_T_BARRIER 0x80000000
#endif /* !VIRTIO_BLK_NO_LEGACY */
-/* This is the first element of the read scatter-gather list. */
+/*
+ * This comes first in the read scatter-gather list.
+ * For legacy virtio, if VIRTIO_F_ANY_LAYOUT is not negotiated,
+ * this is the first element of the read scatter-gather list.
+ */
struct virtio_blk_outhdr {
/* VIRTIO_BLK_T* */
__virtio32 type;