X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/b907b69dd75415bc28349d1dd1e9a598ddace463..a9605e0317c7a6d5e68f3a3b6708c8ef1096f4bc:/qemu-tool.c diff --git a/qemu-tool.c b/qemu-tool.c index 9ccca655ef..64b5e88bc7 100644 --- a/qemu-tool.c +++ b/qemu-tool.c @@ -9,27 +9,30 @@ * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * + * Contributions after 2012-01-13 are licensed under the terms of the + * GNU GPL, version 2 or (at your option) any later version. */ #include "qemu-common.h" #include "monitor.h" #include "qemu-timer.h" #include "qemu-log.h" +#include "migration.h" +#include "main-loop.h" +#include "qemu_socket.h" +#include "slirp/libslirp.h" #include -QEMUClock *rt_clock; - -FILE *logfile; - struct QEMUBH { QEMUBHFunc *cb; void *opaque; }; -void qemu_service_io(void) +const char *qemu_get_vm_name(void) { + return NULL; } Monitor *cur_mon; @@ -55,58 +58,59 @@ void monitor_print_filename(Monitor *mon, const char *filename) { } -void async_context_push(void) +void monitor_protocol_event(MonitorEvent event, QObject *data) { } -void async_context_pop(void) +int64_t cpu_get_clock(void) { + return qemu_get_clock_ns(rt_clock); } -int get_async_context_id(void) +int64_t cpu_get_icount(void) { - return 0; + abort(); } -void monitor_protocol_event(MonitorEvent event, QObject *data) +void qemu_mutex_lock_iothread(void) { } -QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque) +void qemu_mutex_unlock_iothread(void) { - QEMUBH *bh; +} - bh = qemu_malloc(sizeof(*bh)); - bh->cb = cb; - bh->opaque = opaque; +int use_icount; - return bh; +void qemu_clock_warp(QEMUClock *clock) +{ } -int qemu_bh_poll(void) +int qemu_init_main_loop(void) { - return 0; + init_clocks(); + init_timer_alarm(); + return main_loop_init(); } -void qemu_bh_schedule(QEMUBH *bh) +void slirp_update_timeout(uint32_t *timeout) { - bh->cb(bh->opaque); } -void qemu_bh_cancel(QEMUBH *bh) +void slirp_select_fill(int *pnfds, fd_set *readfds, + fd_set *writefds, fd_set *xfds) { } -void qemu_bh_delete(QEMUBH *bh) +void slirp_select_poll(fd_set *readfds, fd_set *writefds, + fd_set *xfds, int select_error) { - qemu_free(bh); } -int qemu_set_fd_handler2(int fd, - IOCanReadHandler *fd_read_poll, - IOHandler *fd_read, - IOHandler *fd_write, - void *opaque) +void migrate_add_blocker(Error *reason) +{ +} + +void migrate_del_blocker(Error *reason) { - return 0; }