2008-09-15 23:51:35 +08:00
|
|
|
/*
|
|
|
|
* Compatibility for qemu-img/qemu-nbd
|
|
|
|
*
|
|
|
|
* Copyright IBM, Corp. 2008
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Anthony Liguori <aliguori@us.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
|
|
* the COPYING file in the top-level directory.
|
|
|
|
*
|
2012-01-14 00:44:23 +08:00
|
|
|
* Contributions after 2012-01-13 are licensed under the terms of the
|
|
|
|
* GNU GPL, version 2 or (at your option) any later version.
|
2008-09-15 23:51:35 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "qemu-common.h"
|
2012-12-18 01:19:49 +08:00
|
|
|
#include "monitor/monitor.h"
|
2012-12-18 01:20:00 +08:00
|
|
|
#include "qemu/timer.h"
|
|
|
|
#include "qemu/log.h"
|
2012-12-18 01:19:50 +08:00
|
|
|
#include "migration/migration.h"
|
2012-12-18 01:20:00 +08:00
|
|
|
#include "qemu/main-loop.h"
|
2012-12-18 01:20:04 +08:00
|
|
|
#include "sysemu/sysemu.h"
|
2012-12-18 01:20:00 +08:00
|
|
|
#include "qemu/sockets.h"
|
2011-09-12 22:20:11 +08:00
|
|
|
#include "slirp/libslirp.h"
|
2008-09-15 23:51:35 +08:00
|
|
|
|
|
|
|
#include <sys/time.h>
|
|
|
|
|
|
|
|
struct QEMUBH
|
|
|
|
{
|
|
|
|
QEMUBHFunc *cb;
|
|
|
|
void *opaque;
|
|
|
|
};
|
|
|
|
|
2012-08-06 16:24:55 +08:00
|
|
|
const char *qemu_get_vm_name(void)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2010-03-22 17:29:04 +08:00
|
|
|
Monitor *cur_mon;
|
|
|
|
|
2012-09-28 23:22:57 +08:00
|
|
|
void vm_stop(RunState state)
|
|
|
|
{
|
|
|
|
abort();
|
|
|
|
}
|
|
|
|
|
2010-03-22 17:29:04 +08:00
|
|
|
int monitor_cur_is_qmp(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void monitor_set_error(Monitor *mon, QError *qerror)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-03-06 07:01:23 +08:00
|
|
|
void monitor_printf(Monitor *mon, const char *fmt, ...)
|
2008-09-15 23:51:35 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-03-06 07:01:23 +08:00
|
|
|
void monitor_print_filename(Monitor *mon, const char *filename)
|
2008-09-15 23:51:35 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-11-27 08:59:03 +08:00
|
|
|
void monitor_protocol_event(MonitorEvent event, QObject *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-01-16 08:46:52 +08:00
|
|
|
int64_t cpu_get_clock(void)
|
2008-09-15 23:51:35 +08:00
|
|
|
{
|
2012-10-30 01:03:10 +08:00
|
|
|
return get_clock_realtime();
|
2008-09-15 23:51:35 +08:00
|
|
|
}
|
2011-02-23 01:42:31 +08:00
|
|
|
|
2012-01-16 08:46:52 +08:00
|
|
|
int64_t cpu_get_icount(void)
|
2011-02-23 01:42:31 +08:00
|
|
|
{
|
2011-09-12 22:20:11 +08:00
|
|
|
abort();
|
2011-02-23 01:42:31 +08:00
|
|
|
}
|
2011-05-09 23:45:39 +08:00
|
|
|
|
2011-09-12 22:20:11 +08:00
|
|
|
void qemu_mutex_lock_iothread(void)
|
2011-05-09 23:45:39 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-09-12 22:20:11 +08:00
|
|
|
void qemu_mutex_unlock_iothread(void)
|
2011-05-09 23:45:39 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-09-12 22:20:11 +08:00
|
|
|
int use_icount;
|
|
|
|
|
|
|
|
void qemu_clock_warp(QEMUClock *clock)
|
2011-05-09 23:45:39 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-04-14 02:35:04 +08:00
|
|
|
void slirp_update_timeout(uint32_t *timeout)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-09-12 22:20:11 +08:00
|
|
|
void slirp_select_fill(int *pnfds, fd_set *readfds,
|
|
|
|
fd_set *writefds, fd_set *xfds)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void slirp_select_poll(fd_set *readfds, fd_set *writefds,
|
|
|
|
fd_set *xfds, int select_error)
|
2011-05-09 23:45:39 +08:00
|
|
|
{
|
|
|
|
}
|
2011-11-15 05:09:47 +08:00
|
|
|
|
|
|
|
void migrate_add_blocker(Error *reason)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void migrate_del_blocker(Error *reason)
|
|
|
|
{
|
|
|
|
}
|