From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEVXb-0004xo-T7 for qemu-devel@nongnu.org; Mon, 04 Aug 2014 23:36:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEVXV-000202-QC for qemu-devel@nongnu.org; Mon, 04 Aug 2014 23:35:59 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:40305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEVXV-0001zw-KI for qemu-devel@nongnu.org; Mon, 04 Aug 2014 23:35:53 -0400 Received: by mail-pa0-f50.google.com with SMTP id et14so530499pad.23 for ; Mon, 04 Aug 2014 20:35:53 -0700 (PDT) From: Ming Lei Date: Tue, 5 Aug 2014 11:33:15 +0800 Message-Id: <1407209598-2572-15-git-send-email-ming.lei@canonical.com> In-Reply-To: <1407209598-2572-1-git-send-email-ming.lei@canonical.com> References: <1407209598-2572-1-git-send-email-ming.lei@canonical.com> Subject: [Qemu-devel] [PATCH v1 14/17] hw/virtio/virtio-blk.h: introduce VIRTIO_BLK_F_MQ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Peter Maydell , Paolo Bonzini , Stefan Hajnoczi Cc: Kevin Wolf , Ming Lei , Fam Zheng , "Michael S. Tsirkin" Prepare for supporting mutli vqs per virtio-blk device. Signed-off-by: Ming Lei --- include/hw/virtio/virtio-blk.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/hw/virtio/virtio-blk.h b/include/hw/virtio/virtio-blk.h index 49ac234..5b0fb91 100644 --- a/include/hw/virtio/virtio-blk.h +++ b/include/hw/virtio/virtio-blk.h @@ -42,6 +42,12 @@ #define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is available */ #define VIRTIO_BLK_F_CONFIG_WCE 11 /* write cache configurable */ +/* + * support multi vqs, and virtio_blk_config.num_queues is only + * available when this feature is enabled + */ +#define VIRTIO_BLK_F_MQ 12 + #define VIRTIO_BLK_ID_BYTES 20 /* ID string length */ struct virtio_blk_config @@ -58,6 +64,8 @@ struct virtio_blk_config uint16_t min_io_size; uint32_t opt_io_size; uint8_t wce; + uint8_t unused; + uint16_t num_queues; /* must be at the end */ } QEMU_PACKED; /* These two define direction. */ -- 1.7.9.5