]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: vmsd errp handlers: return bool
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Tue, 28 Oct 2025 17:09:26 +0000 (20:09 +0300)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:10 +0000 (16:04 -0500)
commit8c3843638cbab2da66d3e9e662c03271d3a9490e
tree71936237622183af036903ee1f5f36e603600dfc
parent507685984cf04d216661cfd927773fa53123a0a9
migration: vmsd errp handlers: return bool

No code actually depend on specific errno values returned by
vmstate_load_state. The only use of it is to check for success,
and sometimes inject numeric error values into error messages
in migration code. The latter is not a stopper for gradual
conversion to "errp + bool return value" APIs.

Big analysis of vmstate_load_state() callers, showing that
specific errno values are not actually used, is done by Peter
here:

https://lore.kernel.org/qemu-devel/aQDdRn8t0B8oE3gf@x1.local/

Converting of vmstate_load_state() itself will follow in
another series.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Link: https://lore.kernel.org/r/20251028170926.77219-2-vsementsov@yandex-team.ru
Signed-off-by: Peter Xu <peterx@redhat.com>
backends/tpm/tpm_emulator.c
docs/devel/migration/main.rst
include/migration/vmstate.h
migration/vmstate.c