qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qapi: Add NVMe driver options to the schema

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20180116060901.17413-10-famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>

+16 -1
+16 -1
qapi/block-core.json
··· 2248 2248 # 2249 2249 # @vxhs: Since 2.10 2250 2250 # @throttle: Since 2.11 2251 + # @nvme: Since 2.12 2251 2252 # 2252 2253 # Since: 2.9 2253 2254 ## ··· 2255 2256 'data': [ 'blkdebug', 'blkverify', 'bochs', 'cloop', 2256 2257 'dmg', 'file', 'ftp', 'ftps', 'gluster', 'host_cdrom', 2257 2258 'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs', 2258 - 'null-aio', 'null-co', 'parallels', 'qcow', 'qcow2', 'qed', 2259 + 'null-aio', 'null-co', 'nvme', 'parallels', 'qcow', 'qcow2', 'qed', 2259 2260 'quorum', 'raw', 'rbd', 'replication', 'sheepdog', 'ssh', 2260 2261 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat', 'vxhs' ] } 2261 2262 ··· 2295 2296 ## 2296 2297 { 'struct': 'BlockdevOptionsNull', 2297 2298 'data': { '*size': 'int', '*latency-ns': 'uint64' } } 2299 + 2300 + ## 2301 + # @BlockdevOptionsNVMe: 2302 + # 2303 + # Driver specific block device options for the NVMe backend. 2304 + # 2305 + # @device: controller address of the NVMe device. 2306 + # @namespace: namespace number of the device, starting from 1. 2307 + # 2308 + # Since: 2.12 2309 + ## 2310 + { 'struct': 'BlockdevOptionsNVMe', 2311 + 'data': { 'device': 'str', 'namespace': 'int' } } 2298 2312 2299 2313 ## 2300 2314 # @BlockdevOptionsVVFAT: ··· 3201 3215 'nfs': 'BlockdevOptionsNfs', 3202 3216 'null-aio': 'BlockdevOptionsNull', 3203 3217 'null-co': 'BlockdevOptionsNull', 3218 + 'nvme': 'BlockdevOptionsNVMe', 3204 3219 'parallels': 'BlockdevOptionsGenericFormat', 3205 3220 'qcow2': 'BlockdevOptionsQcow2', 3206 3221 'qcow': 'BlockdevOptionsQcow',