]>
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 | * | |
6b620ca3 PB |
12 | * Contributions after 2012-01-13 are licensed under the terms of the |
13 | * GNU GPL, version 2 or (at your option) any later version. | |
03ff3ca3 AL |
14 | */ |
15 | ||
16 | #include "qemu-common.h" | |
376253ec | 17 | #include "monitor.h" |
03ff3ca3 | 18 | #include "qemu-timer.h" |
0bf9e31a | 19 | #include "qemu-log.h" |
1ed520c6 | 20 | #include "migration.h" |
cbcfa041 | 21 | #include "main-loop.h" |
3e1caa5f | 22 | #include "sysemu.h" |
cbcfa041 PB |
23 | #include "qemu_socket.h" |
24 | #include "slirp/libslirp.h" | |
03ff3ca3 AL |
25 | |
26 | #include <sys/time.h> | |
27 | ||
03ff3ca3 AL |
28 | struct QEMUBH |
29 | { | |
30 | QEMUBHFunc *cb; | |
31 | void *opaque; | |
32 | }; | |
33 | ||
31459f46 RS |
34 | const char *qemu_get_vm_name(void) |
35 | { | |
36 | return NULL; | |
37 | } | |
38 | ||
526f0ac1 MA |
39 | Monitor *cur_mon; |
40 | ||
3e1caa5f PB |
41 | void vm_stop(RunState state) |
42 | { | |
43 | abort(); | |
44 | } | |
45 | ||
526f0ac1 MA |
46 | int monitor_cur_is_qmp(void) |
47 | { | |
48 | return 0; | |
49 | } | |
50 | ||
51 | void monitor_set_error(Monitor *mon, QError *qerror) | |
52 | { | |
53 | } | |
54 | ||
55 | void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) | |
56 | { | |
57 | } | |
58 | ||
376253ec | 59 | void monitor_printf(Monitor *mon, const char *fmt, ...) |
03ff3ca3 AL |
60 | { |
61 | } | |
62 | ||
376253ec | 63 | void monitor_print_filename(Monitor *mon, const char *filename) |
03ff3ca3 AL |
64 | { |
65 | } | |
66 | ||
0d1ea871 LC |
67 | void monitor_protocol_event(MonitorEvent event, QObject *data) |
68 | { | |
69 | } | |
70 | ||
adb696f3 CB |
71 | int monitor_fdset_get_fd(int64_t fdset_id, int flags) |
72 | { | |
73 | return -1; | |
74 | } | |
75 | ||
76 | int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd) | |
77 | { | |
78 | return -1; | |
79 | } | |
80 | ||
81 | int monitor_fdset_dup_fd_remove(int dup_fd) | |
82 | { | |
83 | return -1; | |
84 | } | |
85 | ||
86 | int monitor_fdset_dup_fd_find(int dup_fd) | |
87 | { | |
88 | return -1; | |
89 | } | |
90 | ||
49cb826e | 91 | int64_t cpu_get_clock(void) |
03ff3ca3 | 92 | { |
8a83205d | 93 | return qemu_get_clock_ns(rt_clock); |
03ff3ca3 | 94 | } |
4e59b545 | 95 | |
49cb826e | 96 | int64_t cpu_get_icount(void) |
4e59b545 | 97 | { |
cbcfa041 | 98 | abort(); |
4e59b545 | 99 | } |
5fc09ca5 | 100 | |
cbcfa041 | 101 | void qemu_mutex_lock_iothread(void) |
5fc09ca5 | 102 | { |
5fc09ca5 SH |
103 | } |
104 | ||
cbcfa041 | 105 | void qemu_mutex_unlock_iothread(void) |
5fc09ca5 | 106 | { |
5fc09ca5 SH |
107 | } |
108 | ||
cbcfa041 PB |
109 | int use_icount; |
110 | ||
111 | void qemu_clock_warp(QEMUClock *clock) | |
5fc09ca5 SH |
112 | { |
113 | } | |
114 | ||
d34e8f6e | 115 | int qemu_init_main_loop(void) |
5fc09ca5 | 116 | { |
cbcfa041 PB |
117 | init_clocks(); |
118 | init_timer_alarm(); | |
d34e8f6e | 119 | return main_loop_init(); |
5fc09ca5 SH |
120 | } |
121 | ||
7c7db755 SS |
122 | void slirp_update_timeout(uint32_t *timeout) |
123 | { | |
124 | } | |
125 | ||
cbcfa041 PB |
126 | void slirp_select_fill(int *pnfds, fd_set *readfds, |
127 | fd_set *writefds, fd_set *xfds) | |
128 | { | |
129 | } | |
130 | ||
131 | void slirp_select_poll(fd_set *readfds, fd_set *writefds, | |
132 | fd_set *xfds, int select_error) | |
5fc09ca5 | 133 | { |
5fc09ca5 | 134 | } |
1ed520c6 AL |
135 | |
136 | void migrate_add_blocker(Error *reason) | |
137 | { | |
138 | } | |
139 | ||
140 | void migrate_del_blocker(Error *reason) | |
141 | { | |
142 | } |