]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-tool.c
qemu-iotests: Mark some tests as quick
[mirror_qemu.git] / qemu-tool.c
index ba24aa2a1396500affee35695f931ebb27adee0b..edb84f5f5d49f96a78e7ef616c75f9098a2d6d0a 100644 (file)
@@ -9,18 +9,21 @@
  * 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 "sysemu.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 <sys/time.h>
 
-QEMUClock *rt_clock;
-
 FILE *logfile;
 
 struct QEMUBH
@@ -29,11 +32,20 @@ struct QEMUBH
     void *opaque;
 };
 
-void qemu_service_io(void)
+Monitor *cur_mon;
+
+int monitor_cur_is_qmp(void)
 {
+    return 0;
 }
 
-Monitor *cur_mon;
+void monitor_set_error(Monitor *mon, QError *qerror)
+{
+}
+
+void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
+{
+}
 
 void monitor_printf(Monitor *mon, const char *fmt, ...)
 {
@@ -43,48 +55,56 @@ void monitor_print_filename(Monitor *mon, const char *filename)
 {
 }
 
-QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque)
+void monitor_protocol_event(MonitorEvent event, QObject *data)
+{
+}
+
+int64_t cpu_get_clock(void)
+{
+    return 0;
+}
+
+int64_t cpu_get_icount(void)
 {
-    QEMUBH *bh;
+    abort();
+}
 
-    bh = qemu_malloc(sizeof(*bh));
-    bh->cb = cb;
-    bh->opaque = opaque;
+void qemu_mutex_lock_iothread(void)
+{
+}
 
-    return bh;
+void qemu_mutex_unlock_iothread(void)
+{
 }
 
-int qemu_bh_poll(void)
+int use_icount;
+
+void qemu_clock_warp(QEMUClock *clock)
 {
-    return 0;
 }
 
-void qemu_bh_schedule(QEMUBH *bh)
+int qemu_init_main_loop(void)
 {
-    bh->cb(bh->opaque);
+    init_clocks();
+    init_timer_alarm();
+    qemu_clock_enable(vm_clock, false);
+    return main_loop_init();
 }
 
-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,
-                         IOCanRWHandler *fd_read_poll,
-                         IOHandler *fd_read,
-                         IOHandler *fd_write,
-                         void *opaque)
+void migrate_add_blocker(Error *reason)
 {
-    return 0;
 }
 
-int64_t qemu_get_clock(QEMUClock *clock)
+void migrate_del_blocker(Error *reason)
 {
-    qemu_timeval tv;
-    qemu_gettimeofday(&tv);
-    return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
 }