From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebKSD-0008BY-9k for qemu-devel@nongnu.org; Tue, 16 Jan 2018 01:10:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebKSB-0001e9-Qm for qemu-devel@nongnu.org; Tue, 16 Jan 2018 01:10:36 -0500 From: Fam Zheng Date: Tue, 16 Jan 2018 14:09:01 +0800 Message-Id: <20180116060901.17413-10-famz@redhat.com> In-Reply-To: <20180116060901.17413-1-famz@redhat.com> References: <20180116060901.17413-1-famz@redhat.com> Subject: [Qemu-devel] [PATCH v6 9/9] qapi: Add NVMe driver options to the schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Keith Busch , qemu-block@nongnu.org, Fam Zheng , Kevin Wolf , Max Reitz , Eric Blake , alex.williamson@redhat.com, Markus Armbruster , Stefan Hajnoczi , Karl Rister Signed-off-by: Fam Zheng Message-Id: <20180110091846.10699-10-famz@redhat.com> Reviewed-by: Stefan Hajnoczi --- qapi/block-core.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index e94a6881b2..bd16440dc7 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -2230,6 +2230,7 @@ # # @vxhs: Since 2.10 # @throttle: Since 2.11 +# @nvme: Since 2.12 # # Since: 2.9 ## @@ -2237,7 +2238,7 @@ 'data': [ 'blkdebug', 'blkverify', 'bochs', 'cloop', 'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom', 'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs', - 'null-aio', 'null-co', 'parallels', 'qcow', 'qcow2', 'qed', + 'null-aio', 'null-co', 'nvme', 'parallels', 'qcow', 'qcow2', 'qed', 'quorum', 'raw', 'rbd', 'replication', 'sheepdog', 'ssh', 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat', 'vxhs' ] } @@ -2278,6 +2279,19 @@ { 'struct': 'BlockdevOptionsNull', 'data': { '*size': 'int', '*latency-ns': 'uint64' } } +## +# @BlockdevOptionsNVMe: +# +# Driver specific block device options for the NVMe backend. +# +# @device: controller address of the NVMe device. +# @namespace: namespace number of the device, starting from 1. +# +# Since: 2.12 +## +{ 'struct': 'BlockdevOptionsNVMe', + 'data': { 'device': 'str', 'namespace': 'int' } } + ## # @BlockdevOptionsVVFAT: # @@ -3183,6 +3197,7 @@ 'nfs': 'BlockdevOptionsNfs', 'null-aio': 'BlockdevOptionsNull', 'null-co': 'BlockdevOptionsNull', + 'nvme': 'BlockdevOptionsNVMe', 'parallels': 'BlockdevOptionsGenericFormat', 'qcow2': 'BlockdevOptionsQcow2', 'qcow': 'BlockdevOptionsQcow', -- 2.14.3