]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/block-active: Remove global active flag
authorKevin Wolf <kwolf@redhat.com>
Tue, 4 Feb 2025 21:13:55 +0000 (22:13 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 6 Feb 2025 13:26:51 +0000 (14:26 +0100)
commitc2a189976e211c9ff782538d5a5ed5e5cffeccd6
tree62d673f143615cbbbd995cdd360a55d3d5424367
parente80210ffb24c4e47650344ba77ce3ed354af596c
migration/block-active: Remove global active flag

Block devices have an individual active state, a single global flag
can't cover this correctly. This becomes more important as we allow
users to manually manage which nodes are active or inactive.

Now that it's allowed to call bdrv_inactivate_all() even when some
nodes are already inactive, we can remove the flag and just
unconditionally call bdrv_inactivate_all() and, more importantly,
bdrv_activate_all() before we make use of the nodes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20250204211407.381505-5-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
migration/block-active.c
migration/migration.c
migration/migration.h