From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCSH9-0000Qt-Nc for qemu-devel@nongnu.org; Wed, 30 Jul 2014 07:42:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCSH2-0004q5-Un for qemu-devel@nongnu.org; Wed, 30 Jul 2014 07:42:31 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:62018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCSH2-0004px-Pq for qemu-devel@nongnu.org; Wed, 30 Jul 2014 07:42:24 -0400 Received: by mail-pd0-f176.google.com with SMTP id y10so1330461pdj.7 for ; Wed, 30 Jul 2014 04:42:24 -0700 (PDT) From: Ming Lei Date: Wed, 30 Jul 2014 19:39:46 +0800 Message-Id: <1406720388-18671-14-git-send-email-ming.lei@canonical.com> In-Reply-To: <1406720388-18671-1-git-send-email-ming.lei@canonical.com> References: <1406720388-18671-1-git-send-email-ming.lei@canonical.com> Subject: [Qemu-devel] [PATCH 13/15] 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 45f8894..ad70c9a 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