]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/colo/xen: Use generic helpers in qemu_save_device_state()
authorPeter Xu <peterx@redhat.com>
Tue, 27 Jan 2026 18:52:54 +0000 (13:52 -0500)
committerFabiano Rosas <farosas@suse.de>
Tue, 17 Feb 2026 12:57:25 +0000 (09:57 -0300)
commit32ed27e5b920695c82c5a397d3837a00a5b5b46a
tree9b6f32e7212b056bbba19e0818eb74628a80cc1d
parent1580d7346b38fe5a0baee72cdf9f46bd8eb6b150
migration/colo/xen: Use generic helpers in qemu_save_device_state()

Use qemu_savevm_state_non_iterable*() helpers for saving device states,
rather than walking the vmstate handlers on its own.

Non-iterables can be either early_setup devices, or otherwise.

Note that QEMU only has one early_setup device currently, which is
virtio-mem, and I highly doubt if it is used in either COLO or Xen users..
However this step is still better needed to provide full coverage of all
non-iterable vmstates.

When at it, allow it to report errors.

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Paul Durrant <paul@xen.org>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Tested-by: Lukas Straub <lukasstraub2@web.de>
Link: https://lore.kernel.org/qemu-devel/20260127185254.3954634-25-peterx@redhat.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/colo.c
migration/savevm.c
migration/savevm.h