aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-09-24 17:26:50 +0200
committerKevin Wolf <kwolf@redhat.com>2020-10-02 15:46:40 +0200
commit56ee86261e0ffa151e82b383d9628cf5660be355 (patch)
treec06329391f7c3e8095e71858930df7e21f9e3a6e /qapi
parent143ea7670cbd3865f577602469b5483b550b4c5e (diff)
downloadqemu-56ee86261e0ffa151e82b383d9628cf5660be355.zip
qemu-56ee86261e0ffa151e82b383d9628cf5660be355.tar.gz
qemu-56ee86261e0ffa151e82b383d9628cf5660be355.tar.bz2
block/export: Add BlockExport infrastructure and block-export-add
We want to have a common set of commands for all types of block exports. Currently, this is only NBD, but we're going to add more types. This patch adds the basic BlockExport and BlockExportDriver structs and a QMP command block-export-add that creates a new export based on the given BlockExportOptions. qmp_nbd_server_add() becomes a wrapper around qmp_block_export_add(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200924152717.287415-5-kwolf@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-export.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/qapi/block-export.json b/qapi/block-export.json
index 6ac3a63..5890a94 100644
--- a/qapi/block-export.json
+++ b/qapi/block-export.json
@@ -172,3 +172,13 @@
'data': {
'nbd': 'BlockExportOptionsNbd'
} }
+
+##
+# @block-export-add:
+#
+# Creates a new block export.
+#
+# Since: 5.2
+##
+{ 'command': 'block-export-add',
+ 'data': 'BlockExportOptions', 'boxed': true }