mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
replay: initialization and deinitialization
This patch introduces the functions for enabling the record/replay and for freeing the resources when simulator closes. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150917162507.8676.90232.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
This commit is contained in:
parent
8a354bd935
commit
7615936ebf
6 changed files with 156 additions and 0 deletions
4
vl.c
4
vl.c
|
@ -4616,6 +4616,8 @@ int main(int argc, char **argv, char **envp)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
replay_start();
|
||||
|
||||
/* This checkpoint is required by replay to separate prior clock
|
||||
reading from the other reads, because timer polling functions query
|
||||
clock values from the log. */
|
||||
|
@ -4657,6 +4659,8 @@ int main(int argc, char **argv, char **envp)
|
|||
}
|
||||
|
||||
main_loop();
|
||||
replay_disable_events();
|
||||
|
||||
bdrv_close_all();
|
||||
pause_all_vcpus();
|
||||
res_free();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue