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>
This commit is contained in:
Paolo Bonzini 2024-04-08 17:53:28 +02:00
parent 857f504cf2
commit 957eca9e73
3 changed files with 5 additions and 2 deletions

4
stubs/replay-mode.c Normal file
View file

@ -0,0 +1,4 @@
#include "qemu/osdep.h"
#include "sysemu/replay.h"
ReplayMode replay_mode;