aboutsummaryrefslogtreecommitdiff
path: root/include/block/block_int.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-05-04 18:52:38 +0200
committerKevin Wolf <kwolf@redhat.com>2017-05-11 12:08:24 +0200
commitcfa1a5723f0fc8eb6563fb1d19c206fd5e40cd41 (patch)
tree1b9b918ff73c1e5b7504c084ce91f919cdc86a49 /include/block/block_int.h
parent4417ab7adf1613799054be5afedf810fc2524ee8 (diff)
downloadqemu-cfa1a5723f0fc8eb6563fb1d19c206fd5e40cd41.zip
qemu-cfa1a5723f0fc8eb6563fb1d19c206fd5e40cd41.tar.gz
qemu-cfa1a5723f0fc8eb6563fb1d19c206fd5e40cd41.tar.bz2
block: Drop permissions when migration completes
With image locking, permissions affect other qemu processes as well. We want to be sure that the destination can run, so let's drop permissions on the source when migration completes. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/block/block_int.h')
-rw-r--r--include/block/block_int.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 5637925..5750a44 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -473,10 +473,11 @@ struct BdrvChildRole {
void (*drained_begin)(BdrvChild *child);
void (*drained_end)(BdrvChild *child);
- /* Notifies the parent that the child has been activated (e.g. when
- * migration is completing) and it can start requesting permissions and
- * doing I/O on it. */
+ /* Notifies the parent that the child has been activated/inactivated (e.g.
+ * when migration is completing) and it can start/stop requesting
+ * permissions and doing I/O on it. */
void (*activate)(BdrvChild *child, Error **errp);
+ int (*inactivate)(BdrvChild *child);
void (*attach)(BdrvChild *child);
void (*detach)(BdrvChild *child);