aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/replay.h
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2015-09-17 19:24:22 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-06 10:16:02 +0100
commitc0c071d05279ec1429352200affc5c70bb4e5980 (patch)
treedeff0163aa688b841d7ef4bc3571c0dcfefee924 /include/sysemu/replay.h
parent6f0609697f3670bf755a91477487507a8ffee471 (diff)
replay: asynchronous events infrastructure
This patch adds module for saving and replaying asynchronous events. These events include network packets, keyboard and mouse input, USB packets, thread pool and bottom halves callbacks. All events are stored in the queue to be processed at synchronization points such as beginning of TB execution, or checkpoint in the iothread. Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150917162422.8676.88696.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Diffstat (limited to 'include/sysemu/replay.h')
-rw-r--r--include/sysemu/replay.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h
index 8915523eaf..c2a7651d7a 100644
--- a/include/sysemu/replay.h
+++ b/include/sysemu/replay.h
@@ -43,5 +43,11 @@ bool replay_interrupt(void);
Returns true, when interrupt request is pending */
bool replay_has_interrupt(void);
+/* Asynchronous events queue */
+
+/*! Disables storing events in the queue */
+void replay_disable_events(void);
+/*! Returns true when saving events is enabled */
+bool replay_events_enabled(void);
#endif