]> git.proxmox.com Git - qemu.git/blame_incremental - qemu-tool.c
hw/versatile_i2c: Use LOG_GUEST_ERROR
[qemu.git] / qemu-tool.c
... / ...
CommitLineData
1/*
2 * Compatibility for qemu-img/qemu-nbd
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
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 * Contributions after 2012-01-13 are licensed under the terms of the
13 * GNU GPL, version 2 or (at your option) any later version.
14 */
15
16#include "qemu-common.h"
17#include "monitor.h"
18#include "qemu-timer.h"
19#include "qemu-log.h"
20#include "migration.h"
21#include "main-loop.h"
22#include "sysemu.h"
23#include "qemu_socket.h"
24#include "slirp/libslirp.h"
25
26#include <sys/time.h>
27
28struct QEMUBH
29{
30 QEMUBHFunc *cb;
31 void *opaque;
32};
33
34const char *qemu_get_vm_name(void)
35{
36 return NULL;
37}
38
39Monitor *cur_mon;
40
41int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
42{
43 error_setg(errp, "only QEMU supports file descriptor passing");
44 return -1;
45}
46
47void vm_stop(RunState state)
48{
49 abort();
50}
51
52int monitor_cur_is_qmp(void)
53{
54 return 0;
55}
56
57void monitor_set_error(Monitor *mon, QError *qerror)
58{
59}
60
61void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
62{
63}
64
65void monitor_printf(Monitor *mon, const char *fmt, ...)
66{
67}
68
69void monitor_print_filename(Monitor *mon, const char *filename)
70{
71}
72
73void monitor_protocol_event(MonitorEvent event, QObject *data)
74{
75}
76
77int monitor_fdset_get_fd(int64_t fdset_id, int flags)
78{
79 return -1;
80}
81
82int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd)
83{
84 return -1;
85}
86
87int monitor_fdset_dup_fd_remove(int dup_fd)
88{
89 return -1;
90}
91
92int monitor_fdset_dup_fd_find(int dup_fd)
93{
94 return -1;
95}
96
97int64_t cpu_get_clock(void)
98{
99 return qemu_get_clock_ns(rt_clock);
100}
101
102int64_t cpu_get_icount(void)
103{
104 abort();
105}
106
107void qemu_mutex_lock_iothread(void)
108{
109}
110
111void qemu_mutex_unlock_iothread(void)
112{
113}
114
115int use_icount;
116
117void qemu_clock_warp(QEMUClock *clock)
118{
119}
120
121int qemu_init_main_loop(void)
122{
123 init_clocks();
124 init_timer_alarm();
125 return main_loop_init();
126}
127
128void slirp_update_timeout(uint32_t *timeout)
129{
130}
131
132void slirp_select_fill(int *pnfds, fd_set *readfds,
133 fd_set *writefds, fd_set *xfds)
134{
135}
136
137void slirp_select_poll(fd_set *readfds, fd_set *writefds,
138 fd_set *xfds, int select_error)
139{
140}
141
142void migrate_add_blocker(Error *reason)
143{
144}
145
146void migrate_del_blocker(Error *reason)
147{
148}