Browse Source

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>
pull/265/head
Paolo Bonzini 2 years ago
parent
commit
957eca9e73
  1. 1
      stubs/meson.build
  2. 4
      stubs/replay-mode.c
  3. 2
      stubs/replay.c

1
stubs/meson.build

@ -36,6 +36,7 @@ stub_ss.add(files('qmp-quit.c'))
stub_ss.add(files('qtest.c'))
stub_ss.add(files('ram-block.c'))
stub_ss.add(files('replay.c'))
stub_ss.add(files('replay-mode.c'))
stub_ss.add(files('runstate-check.c'))
stub_ss.add(files('sysbus.c'))
stub_ss.add(files('target-get-monitor-def.c'))

4
stubs/replay-mode.c

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

2
stubs/replay.c

@ -1,8 +1,6 @@
#include "qemu/osdep.h"
#include "exec/replay-core.h"
ReplayMode replay_mode;
void replay_finish(void)
{
}

Loading…
Cancel
Save