mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
reset: allow registering handlers that aren't called by snapshot loading
Snapshot loading only expects to call deterministic handlers, not non-deterministic ones. So introduce a way of registering handlers that won't be called when reseting for snapshots. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Message-id: 20221025004327.568476-2-Jason@zx2c4.com [PMM: updated json doc comment with Markus' text; fixed checkpatch style nit] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
c8d6c286ab
commit
7966d70f6f
@@ -3058,7 +3058,7 @@ bool load_snapshot(const char *name, const char *vmstate,
|
||||
goto err_drain;
|
||||
}
|
||||
|
||||
qemu_system_reset(SHUTDOWN_CAUSE_NONE);
|
||||
qemu_system_reset(SHUTDOWN_CAUSE_SNAPSHOT_LOAD);
|
||||
mis->from_src_file = f;
|
||||
|
||||
if (!yank_register_instance(MIGRATION_YANK_INSTANCE, errp)) {
|
||||
|
||||
Reference in New Issue
Block a user