From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRyTF-0001dF-C1 for qemu-devel@nongnu.org; Sun, 01 Mar 2015 02:39:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRyTE-000301-Iu for qemu-devel@nongnu.org; Sun, 01 Mar 2015 02:39:25 -0500 Received: from mail.kernel.org ([198.145.29.136]:46890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRyTE-0002zx-Dx for qemu-devel@nongnu.org; Sun, 01 Mar 2015 02:39:24 -0500 Date: Sun, 1 Mar 2015 08:39:19 +0100 From: "Michael S. Tsirkin" Message-ID: <1425192883-5930-3-git-send-email-mst@redhat.com> References: <1425192883-5930-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425192883-5930-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] virtio_blk: fix comment for virtio 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: linux-kernel@vger.kernel.org, Rusty Russell , virtualization@lists.linux-foundation.org, qemu-devel@nongnu.org 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 --- include/uapi/linux/virtio_blk.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_blk.h b/include/uapi/linux/virtio_blk.h index b695ba9..19c66fc 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; -- MST