]> www.infradead.org Git - users/dwmw2/qemu.git/commit
qmp/cont: Only activate disks if migration completed
authorPeter Xu <peterx@redhat.com>
Fri, 6 Dec 2024 23:08:34 +0000 (18:08 -0500)
committerFabiano Rosas <farosas@suse.de>
Thu, 9 Jan 2025 20:38:44 +0000 (17:38 -0300)
commite4e5e89bbd8e731e86735d9d25b7b5f49e8f08b6
tree31dfa796d38c370aa339ffc5ffa8d07fea2c2169
parent7815f69867da92335055d4b5248430b0f122ce4e
qmp/cont: Only activate disks if migration completed

As the comment says, the activation of disks is for the case where
migration has completed, rather than when QEMU is still during
migration (RUN_STATE_INMIGRATE).

Move the code over to reflect what the comment is describing.

Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-Id: <20241206230838.1111496-3-peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
monitor/qmp-cmds.c