mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06: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:
parent
c8d6c286ab
commit
7966d70f6f
15 changed files with 54 additions and 27 deletions
|
@ -411,7 +411,7 @@ static void s390_pv_prepare_reset(S390CcwMachineState *ms)
|
|||
s390_pv_prep_reset();
|
||||
}
|
||||
|
||||
static void s390_machine_reset(MachineState *machine)
|
||||
static void s390_machine_reset(MachineState *machine, ShutdownCause reason)
|
||||
{
|
||||
S390CcwMachineState *ms = S390_CCW_MACHINE(machine);
|
||||
enum s390_reset reset_type;
|
||||
|
@ -433,7 +433,7 @@ static void s390_machine_reset(MachineState *machine)
|
|||
s390_machine_unprotect(ms);
|
||||
}
|
||||
|
||||
qemu_devices_reset();
|
||||
qemu_devices_reset(reason);
|
||||
s390_crypto_reset();
|
||||
|
||||
/* configure and start the ipl CPU only */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue