]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: push Error **errp into vmstate_load()
authorArun Menon <armenon@redhat.com>
Thu, 18 Sep 2025 15:23:21 +0000 (20:53 +0530)
committerPeter Xu <peterx@redhat.com>
Fri, 3 Oct 2025 13:48:01 +0000 (09:48 -0400)
commite97da6b583d7cf7d5289cbe9faf280bd453d6391
tree814fd50a11b8ef6a70fbeab165caee57e1d82c99
parent71cf63a471a5814fa2c29c74e268838851b14d01
migration: push Error **errp into vmstate_load()

This is an incremental step in converting vmstate loading
code to report error via Error objects instead of directly
printing it to console/monitor.
It is ensured that vmstate_load() must report an error
in errp, in case of failure.

The errors are temporarily reported using error_report_err().
This is removed in the subsequent patches in this series
when we are actually able to propagate the error to the calling
function.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Arun Menon <armenon@redhat.com>
Tested-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/20250918-propagate_tpm_error-v14-4-36f11a6fb9d3@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/savevm.c