mirror of
https://github.com/qemu/qemu.git
synced 2024-12-18 01:34:15 +08:00
7966d70f6f
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>
14 lines
408 B
C
14 lines
408 B
C
#ifndef QEMU_SYSEMU_RESET_H
|
|
#define QEMU_SYSEMU_RESET_H
|
|
|
|
#include "qapi/qapi-events-run-state.h"
|
|
|
|
typedef void QEMUResetHandler(void *opaque);
|
|
|
|
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
|
void qemu_register_reset_nosnapshotload(QEMUResetHandler *func, void *opaque);
|
|
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
|
|
void qemu_devices_reset(ShutdownCause reason);
|
|
|
|
#endif
|