aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-09-24 17:27:08 +0200
committerKevin Wolf <kwolf@redhat.com>2020-10-02 15:46:40 +0200
commit37a4f70cea72a38fe981cbff517c222cefa46f21 (patch)
tree1551ddfb797090c1238e60b86aaed8921f73f02f /include/block
parent1a9f7a804f52caee6bc6769a8bb0a018e6c8ec81 (diff)
downloadqemu-37a4f70cea72a38fe981cbff517c222cefa46f21.zip
qemu-37a4f70cea72a38fe981cbff517c222cefa46f21.tar.gz
qemu-37a4f70cea72a38fe981cbff517c222cefa46f21.tar.bz2
block/export: Move blk to BlockExport
Every block export has a BlockBackend representing the disk that is exported. It should live in BlockExport therefore. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200924152717.287415-23-kwolf@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/export.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/block/export.h b/include/block/export.h
index ff54d35..7feb02e 100644
--- a/include/block/export.h
+++ b/include/block/export.h
@@ -71,6 +71,9 @@ struct BlockExport {
/* The AioContext whose lock protects this BlockExport object. */
AioContext *ctx;
+ /* The block device to export */
+ BlockBackend *blk;
+
/* List entry for block_exports */
QLIST_ENTRY(BlockExport) next;
};