From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7S8a-00037M-Lh for qemu-devel@nongnu.org; Wed, 16 Jul 2014 12:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7S8T-0001f6-UY for qemu-devel@nongnu.org; Wed, 16 Jul 2014 12:33:00 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:61304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7S8T-0001ey-Pc for qemu-devel@nongnu.org; Wed, 16 Jul 2014 12:32:53 -0400 Received: by mail-pa0-f54.google.com with SMTP id fa1so1606764pad.13 for ; Wed, 16 Jul 2014 09:32:53 -0700 (PDT) From: Ming Lei Date: Thu, 17 Jul 2014 00:31:19 +0800 Message-Id: <1405528281-23744-13-git-send-email-ming.lei@canonical.com> In-Reply-To: <1405528281-23744-1-git-send-email-ming.lei@canonical.com> References: <1405528281-23744-1-git-send-email-ming.lei@canonical.com> Subject: [Qemu-devel] [PATCH RFC 12/14] 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, 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