Skip to contentSkip to conversation

[7236] qemu: create helper for event notification (Marcelo Tosatti)

Qemu-devel Anthony Liguori 1 participant 1 message Apr 24, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 7236

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7236
Author:   aliguori
Date:     2009-04-24 18:03:11 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
qemu: create helper for event notification (Marcelo Tosatti)

Modified Paths:
--------------
trunk/hw/mac_dbdma.c
trunk/qemu-common.h
trunk/vl.c

Modified: trunk/hw/mac_dbdma.c
===================================================================

hw/mac_dbdma.c +1 -3
@@ -651,9 +651,7 @@
 
 void DBDMA_schedule(void)
 {
-    CPUState *env = cpu_single_env;
-    if (env)
-        cpu_exit(env);
+    qemu_notify_event();
 }
 
 static void

Modified: trunk/qemu-common.h
===================================================================

qemu-common.h +3 -0
@@ -186,6 +186,9 @@
 /* Force QEMU to stop what it's doing and service IO */
 void qemu_service_io(void);
 
+/* Force QEMU to process pending events */
+void qemu_notify_event(void);
+
 typedef struct QEMUIOVector {
     struct iovec *iov;
     int niov;

Modified: trunk/vl.c
===================================================================

vl.c +21 -22

90 lines not on this page · raw message