aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2024-03-04 13:28:27 +0100
committerPeter Xu <peterx@redhat.com>2024-03-11 14:41:40 -0400
commite6e08e83239a067449b9698874c7547164a38414 (patch)
tree8095c8d7d4d69df079fd0773f9080343b70faf24 /hw
parentee8bb867ec48085404e6282e8f53f8446261cb84 (diff)
downloadqemu-e6e08e83239a067449b9698874c7547164a38414.zip
qemu-e6e08e83239a067449b9698874c7547164a38414.tar.gz
qemu-e6e08e83239a067449b9698874c7547164a38414.tar.bz2
migration: Do not call PRECOPY_NOTIFY_SETUP notifiers in case of error
When commit bd2270608fa0 ("migration/ram.c: add a notifier chain for precopy") added PRECOPY_NOTIFY_SETUP notifiers at the end of qemu_savevm_state_setup(), it didn't take into account a possible error in the loop calling vmstate_save() or .save_setup() handlers. Check ret value before calling the notifiers. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/r/20240304122844.1888308-10-clg@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions