]> git.proxmox.com Git - mirror_qemu.git/commit - system/runstate.c
reset: allow registering handlers that aren't called by snapshot loading
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 25 Oct 2022 00:43:17 +0000 (02:43 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Oct 2022 10:34:31 +0000 (11:34 +0100)
commit7966d70f6f6b188475e67c2c363f19eec3d28c96
treebbd0a95d1d8b8c64bb8dbaf37d38e8f85af5ada6
parentc8d6c286ab4bff1c5ff511f3e834fb2a713d65d2
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>
15 files changed:
hw/arm/aspeed.c
hw/arm/mps2-tz.c
hw/core/reset.c
hw/hppa/machine.c
hw/i386/microvm.c
hw/i386/pc.c
hw/ppc/pegasos2.c
hw/ppc/pnv.c
hw/ppc/spapr.c
hw/s390x/s390-virtio-ccw.c
include/hw/boards.h
include/sysemu/reset.h
migration/savevm.c
qapi/run-state.json
softmmu/runstate.c