]>
Commit | Line | Data |
---|---|---|
03ff3ca3 AL |
1 | /* |
2 | * Compatibility for qemu-img/qemu-nbd | |
3 | * | |
4 | * Copyright IBM, Corp. 2008 | |
5 | * | |
6 | * Authors: | |
7 | * Anthony Liguori <[email protected]> | |
8 | * | |
9 | * This work is licensed under the terms of the GNU GPL, version 2. See | |
10 | * the COPYING file in the top-level directory. | |
11 | * | |
12 | */ | |
13 | ||
14 | #include "qemu-common.h" | |
376253ec | 15 | #include "monitor.h" |
03ff3ca3 | 16 | #include "qemu-timer.h" |
0bf9e31a | 17 | #include "qemu-log.h" |
1ed520c6 | 18 | #include "migration.h" |
cbcfa041 PB |
19 | #include "main-loop.h" |
20 | #include "qemu_socket.h" | |
21 | #include "slirp/libslirp.h" | |
03ff3ca3 AL |
22 | |
23 | #include <sys/time.h> | |
24 | ||
0bf9e31a BS |
25 | FILE *logfile; |
26 | ||
03ff3ca3 AL |
27 | struct QEMUBH |
28 | { | |
29 | QEMUBHFunc *cb; | |
30 | void *opaque; | |
31 | }; | |
32 | ||
526f0ac1 MA |
33 | Monitor *cur_mon; |
34 | ||
35 | int monitor_cur_is_qmp(void) | |
36 | { | |
37 | return 0; | |
38 | } | |
39 | ||
40 | void monitor_set_error(Monitor *mon, QError *qerror) | |
41 | { | |
42 | } | |
43 | ||
44 | void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) | |
45 | { | |
46 | } | |
47 | ||
376253ec | 48 | void monitor_printf(Monitor *mon, const char *fmt, ...) |
03ff3ca3 AL |
49 | { |
50 | } | |
51 | ||
376253ec | 52 | void monitor_print_filename(Monitor *mon, const char *filename) |
03ff3ca3 AL |
53 | { |
54 | } | |
55 | ||
0d1ea871 LC |
56 | void monitor_protocol_event(MonitorEvent event, QObject *data) |
57 | { | |
58 | } | |
59 | ||
cbcfa041 | 60 | int64 cpu_get_clock(void) |
03ff3ca3 | 61 | { |
cbcfa041 | 62 | abort(); |
03ff3ca3 | 63 | } |
4e59b545 | 64 | |
cbcfa041 | 65 | int64 cpu_get_icount(void) |
4e59b545 | 66 | { |
cbcfa041 | 67 | abort(); |
4e59b545 | 68 | } |
5fc09ca5 | 69 | |
cbcfa041 | 70 | void qemu_mutex_lock_iothread(void) |
5fc09ca5 | 71 | { |
5fc09ca5 SH |
72 | } |
73 | ||
cbcfa041 | 74 | void qemu_mutex_unlock_iothread(void) |
5fc09ca5 | 75 | { |
5fc09ca5 SH |
76 | } |
77 | ||
cbcfa041 PB |
78 | int use_icount; |
79 | ||
80 | void qemu_clock_warp(QEMUClock *clock) | |
5fc09ca5 SH |
81 | { |
82 | } | |
83 | ||
cbcfa041 | 84 | static void __attribute__((constructor)) init_main_loop(void) |
5fc09ca5 | 85 | { |
cbcfa041 PB |
86 | init_clocks(); |
87 | init_timer_alarm(); | |
88 | qemu_clock_enable(vm_clock, false); | |
5fc09ca5 SH |
89 | } |
90 | ||
cbcfa041 PB |
91 | void slirp_select_fill(int *pnfds, fd_set *readfds, |
92 | fd_set *writefds, fd_set *xfds) | |
93 | { | |
94 | } | |
95 | ||
96 | void slirp_select_poll(fd_set *readfds, fd_set *writefds, | |
97 | fd_set *xfds, int select_error) | |
5fc09ca5 | 98 | { |
5fc09ca5 | 99 | } |
1ed520c6 AL |
100 | |
101 | void migrate_add_blocker(Error *reason) | |
102 | { | |
103 | } | |
104 | ||
105 | void migrate_del_blocker(Error *reason) | |
106 | { | |
107 | } |