]>
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 | ||
49cb826e | 71 | int64_t cpu_get_clock(void) |
03ff3ca3 | 72 | { |
3f4cdf15 | 73 | return get_clock_realtime(); |
03ff3ca3 | 74 | } |
4e59b545 | 75 | |
49cb826e | 76 | int64_t cpu_get_icount(void) |
4e59b545 | 77 | { |
cbcfa041 | 78 | abort(); |
4e59b545 | 79 | } |
5fc09ca5 | 80 | |
cbcfa041 | 81 | void qemu_mutex_lock_iothread(void) |
5fc09ca5 | 82 | { |
5fc09ca5 SH |
83 | } |
84 | ||
cbcfa041 | 85 | void qemu_mutex_unlock_iothread(void) |
5fc09ca5 | 86 | { |
5fc09ca5 SH |
87 | } |
88 | ||
cbcfa041 PB |
89 | int use_icount; |
90 | ||
91 | void qemu_clock_warp(QEMUClock *clock) | |
5fc09ca5 SH |
92 | { |
93 | } | |
94 | ||
7c7db755 SS |
95 | void slirp_update_timeout(uint32_t *timeout) |
96 | { | |
97 | } | |
98 | ||
cbcfa041 PB |
99 | void slirp_select_fill(int *pnfds, fd_set *readfds, |
100 | fd_set *writefds, fd_set *xfds) | |
101 | { | |
102 | } | |
103 | ||
104 | void slirp_select_poll(fd_set *readfds, fd_set *writefds, | |
105 | fd_set *xfds, int select_error) | |
5fc09ca5 | 106 | { |
5fc09ca5 | 107 | } |
1ed520c6 AL |
108 | |
109 | void migrate_add_blocker(Error *reason) | |
110 | { | |
111 | } | |
112 | ||
113 | void migrate_del_blocker(Error *reason) | |
114 | { | |
115 | } |