]> git.proxmox.com Git - mirror_qemu.git/blame - qemu-tool.c
MAINTAINERS: Add qemu-ppc to all ppc target stuff
[mirror_qemu.git] / qemu-tool.c
CommitLineData
03ff3ca3
AL
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 *
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
PB
21#include "main-loop.h"
22#include "qemu_socket.h"
23#include "slirp/libslirp.h"
03ff3ca3
AL
24
25#include <sys/time.h>
26
0bf9e31a
BS
27FILE *logfile;
28
03ff3ca3
AL
29struct QEMUBH
30{
31 QEMUBHFunc *cb;
32 void *opaque;
33};
34
526f0ac1
MA
35Monitor *cur_mon;
36
37int monitor_cur_is_qmp(void)
38{
39 return 0;
40}
41
42void monitor_set_error(Monitor *mon, QError *qerror)
43{
44}
45
46void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
47{
48}
49
376253ec 50void monitor_printf(Monitor *mon, const char *fmt, ...)
03ff3ca3
AL
51{
52}
53
376253ec 54void monitor_print_filename(Monitor *mon, const char *filename)
03ff3ca3
AL
55{
56}
57
0d1ea871
LC
58void monitor_protocol_event(MonitorEvent event, QObject *data)
59{
60}
61
49cb826e 62int64_t cpu_get_clock(void)
03ff3ca3 63{
cbcfa041 64 abort();
03ff3ca3 65}
4e59b545 66
49cb826e 67int64_t cpu_get_icount(void)
4e59b545 68{
cbcfa041 69 abort();
4e59b545 70}
5fc09ca5 71
cbcfa041 72void qemu_mutex_lock_iothread(void)
5fc09ca5 73{
5fc09ca5
SH
74}
75
cbcfa041 76void qemu_mutex_unlock_iothread(void)
5fc09ca5 77{
5fc09ca5
SH
78}
79
cbcfa041
PB
80int use_icount;
81
82void qemu_clock_warp(QEMUClock *clock)
5fc09ca5
SH
83{
84}
85
cbcfa041 86static void __attribute__((constructor)) init_main_loop(void)
5fc09ca5 87{
cbcfa041
PB
88 init_clocks();
89 init_timer_alarm();
90 qemu_clock_enable(vm_clock, false);
5fc09ca5
SH
91}
92
cbcfa041
PB
93void slirp_select_fill(int *pnfds, fd_set *readfds,
94 fd_set *writefds, fd_set *xfds)
95{
96}
97
98void slirp_select_poll(fd_set *readfds, fd_set *writefds,
99 fd_set *xfds, int select_error)
5fc09ca5 100{
5fc09ca5 101}
1ed520c6
AL
102
103void migrate_add_blocker(Error *reason)
104{
105}
106
107void migrate_del_blocker(Error *reason)
108{
109}