diff options
| author | Pavel Dovgalyuk | 2017-01-24 08:17:47 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2017-01-27 18:07:30 +0100 |
| commit | 9c2037d0a41d3d55b17a68e42e815be45036d8d2 (patch) | |
| tree | f67f146cccc9f0c6f1a6ad271f770188238875eb /include | |
| parent | savevm: add public save_vmstate function (diff) | |
| download | qemu-9c2037d0a41d3d55b17a68e42e815be45036d8d2.tar.gz qemu-9c2037d0a41d3d55b17a68e42e815be45036d8d2.tar.xz qemu-9c2037d0a41d3d55b17a68e42e815be45036d8d2.zip | |
replay: save/load initial state
This patch implements initial vmstate creation or loading at the start
of record/replay. It is needed for rewinding the execution in the replay mode.
v4 changes:
- snapshots are not created by default anymore
v3 changes:
- added rrsnapshot option
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20170124071746.4572.61449.stgit@PASHA-ISP>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/replay.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h index abb35ca8c9..740b425fe4 100644 --- a/include/sysemu/replay.h +++ b/include/sysemu/replay.h @@ -43,6 +43,9 @@ typedef struct ReplayNetState ReplayNetState; extern ReplayMode replay_mode; +/* Name of the initial VM snapshot */ +extern char *replay_snapshot; + /* Replay process control functions */ /*! Enables recording or saving event log with specified parameters */ @@ -149,4 +152,10 @@ void replay_unregister_net(ReplayNetState *rns); void replay_net_packet_event(ReplayNetState *rns, unsigned flags, const struct iovec *iov, int iovcnt); +/* VM state operations */ + +/*! Called at the start of execution. + Loads or saves initial vmstate depending on execution mode. */ +void replay_vmstate_init(void); + #endif |
