summary refs log tree commit diff stats
path: root/stubs/replay-mode.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-04-08 17:53:28 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-18 11:17:27 +0200
commit957eca9e73279453899193c053d1a47304e9aa58 (patch)
tree7b5f83ac2baec9c500bea84489b4e7c204552aba /stubs/replay-mode.c
parent857f504cf279a063e375c32e88d5cf3312d6b30c (diff)
downloadfocaccia-qemu-957eca9e73279453899193c053d1a47304e9aa58.tar.gz
focaccia-qemu-957eca9e73279453899193c053d1a47304e9aa58.zip
stubs: split record/replay stubs further
replay.c symbols are only needed by user mode emulation, with the
exception of replay_mode that is needed by both user mode emulation
(by way of qemu_guest_getrandom) and block layer tools (by way of
util/qemu-timer.c).

Since it is needed by libqemuutil rather than specific files that
are part of the tools and emulators, split the replay_mode stub
into its own file.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20240408155330.522792-17-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs/replay-mode.c')
-rw-r--r--stubs/replay-mode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stubs/replay-mode.c b/stubs/replay-mode.c
new file mode 100644
index 0000000000..264be9d96c
--- /dev/null
+++ b/stubs/replay-mode.c
@@ -0,0 +1,4 @@
+#include "qemu/osdep.h"
+#include "sysemu/replay.h"
+
+ReplayMode replay_mode;