2 * Compatibility for qemu-img/qemu-nbd
4 * Copyright IBM, Corp. 2008
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #include "qemu-common.h"
16 #include "qemu-timer.h"
18 #include "migration.h"
19 #include "main-loop.h"
20 #include "qemu_socket.h"
21 #include "slirp/libslirp.h"
35 int monitor_cur_is_qmp(void)
40 void monitor_set_error(Monitor
*mon
, QError
*qerror
)
44 void monitor_vprintf(Monitor
*mon
, const char *fmt
, va_list ap
)
48 void monitor_printf(Monitor
*mon
, const char *fmt
, ...)
52 void monitor_print_filename(Monitor
*mon
, const char *filename
)
56 void monitor_protocol_event(MonitorEvent event
, QObject
*data
)
60 int64
cpu_get_clock(void)
65 int64
cpu_get_icount(void)
70 void qemu_mutex_lock_iothread(void)
74 void qemu_mutex_unlock_iothread(void)
80 void qemu_clock_warp(QEMUClock
*clock
)
84 static void __attribute__((constructor
)) init_main_loop(void)
88 qemu_clock_enable(vm_clock
, false);
91 void slirp_select_fill(int *pnfds
, fd_set
*readfds
,
92 fd_set
*writefds
, fd_set
*xfds
)
96 void slirp_select_poll(fd_set
*readfds
, fd_set
*writefds
,
97 fd_set
*xfds
, int select_error
)
101 void migrate_add_blocker(Error
*reason
)
105 void migrate_del_blocker(Error
*reason
)