diff options
author | Kevin Wolf <kwolf@redhat.com> | 2019-04-24 17:41:46 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-06-04 15:22:22 +0200 |
commit | 132ada80c4a6fea7b67e8bb0a5fd299994d927c6 (patch) | |
tree | 3457b1a3fb7bc3c40ec2d1bbed86b374809ce79f /include/block/block_int.h | |
parent | 4f71fb436a6fbec7a7b2360cdba741deeb24be67 (diff) | |
download | qemu-132ada80c4a6fea7b67e8bb0a5fd299994d927c6.zip qemu-132ada80c4a6fea7b67e8bb0a5fd299994d927c6.tar.gz qemu-132ada80c4a6fea7b67e8bb0a5fd299994d927c6.tar.bz2 |
block: Adjust AioContexts when attaching nodes
So far, we only made sure that updating the AioContext of a node
affected the whole subtree. However, if a node is newly attached to a
new parent, we also need to make sure that both the subtree of the node
and the parent are in the same AioContext. This tries to move the new
child node to the parent AioContext and returns an error if this isn't
possible.
BlockBackends now actually apply their AioContext to their root node.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block/block_int.h')
-rw-r--r-- | include/block/block_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 1eebc7c..06df2bd 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -1163,6 +1163,7 @@ void hmp_drive_add_node(Monitor *mon, const char *optstr); BdrvChild *bdrv_root_attach_child(BlockDriverState *child_bs, const char *child_name, const BdrvChildRole *child_role, + AioContext *ctx, uint64_t perm, uint64_t shared_perm, void *opaque, Error **errp); void bdrv_root_unref_child(BdrvChild *child); |