]> git.proxmox.com Git - mirror_qemu.git/commit
migration: Add Error** argument to .save_setup() handler
authorCédric Le Goater <clg@redhat.com>
Wed, 20 Mar 2024 06:49:03 +0000 (07:49 +0100)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Apr 2024 22:36:01 +0000 (18:36 -0400)
commit01c3ac681bd6709d2bf6a7d9591c40a394e39536
tree30bee7ec21065dc50261290aedc4f7faeae515dd
parent057a20099b62c5ac3c925f3fe12bdedac96e647b
migration: Add Error** argument to .save_setup() handler

The purpose is to record a potential error in the migration stream if
qemu_savevm_state_setup() fails. Most of the current .save_setup()
handlers can be modified to use the Error argument instead of managing
their own and calling locally error_report().

Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Harsh Prateek Bora <harshpb@linux.ibm.com>
Cc: Halil Pasic <pasic@linux.ibm.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Eric Blake <eblake@redhat.com>
Cc: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: John Snow <jsnow@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20240320064911.545001-8-clg@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
hw/ppc/spapr.c
hw/s390x/s390-stattrib.c
hw/vfio/migration.c
include/migration/register.h
migration/block-dirty-bitmap.c
migration/block.c
migration/ram.c
migration/savevm.c