Sharing pause_all_vcpus() with qemu-user requires a no-op
implementation of qemu_clock_enable().

Signed-off-by: Ilya Leoshkevich <i...@linux.ibm.com>
---
 stubs/meson.build  | 4 ++++
 stubs/qemu-timer.c | 6 ++++++
 2 files changed, 10 insertions(+)
 create mode 100644 stubs/qemu-timer.c

diff --git a/stubs/meson.build b/stubs/meson.build
index ab4b98a0e18..9e78a0b9745 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -46,6 +46,10 @@ if have_block or have_ga
   stub_ss.add(files('qmp-quit.c'))
 endif
 
+if have_user
+  stub_ss.add(files('qemu-timer.c'))
+endif
+
 if have_block or have_ga or have_user
   stub_ss.add(files('replay-mutex.c'))
 endif
diff --git a/stubs/qemu-timer.c b/stubs/qemu-timer.c
new file mode 100644
index 00000000000..27b67f7b313
--- /dev/null
+++ b/stubs/qemu-timer.c
@@ -0,0 +1,6 @@
+#include "qemu/osdep.h"
+#include "qemu/timer.h"
+
+void qemu_clock_enable(QEMUClockType type, bool enabled)
+{
+}
-- 
2.46.0


Reply via email to