diff mbox series

[09/18] qemu-timer: Provide qemu_clock_enable() stub for qemu-user

Message ID 20240923162208.90745-10-iii@linux.ibm.com
State New
Headers show
Series Stop all qemu-cpu threads on a breakpoint | expand

Commit Message

Ilya Leoshkevich Sept. 23, 2024, 4:13 p.m. UTC
Sharing pause_all_vcpus() with qemu-user requires a no-op
implementation of qemu_clock_enable().

Signed-off-by: Ilya Leoshkevich <iii@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 mbox series

Patch

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)
+{
+}