Patchwork [2/2] virtio-serial-bus: wake up iothread upon guest read notification

login
register
mail settings
Submitter Marcelo Tosatti
Date March 25, 2010, 1:47 p.m.
Message ID <20100325134957.714516303@amt.cnet>
Download mbox | patch
Permalink /patch/48517/
State New
Headers show

Comments

Marcelo Tosatti - March 25, 2010, 1:47 p.m.
Wake up iothread when buffers are consumed.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Patch

Index: qemu-ioworker/hw/virtio-serial-bus.c
===================================================================
--- qemu-ioworker.orig/hw/virtio-serial-bus.c
+++ qemu-ioworker/hw/virtio-serial-bus.c
@@ -331,6 +331,7 @@  static void handle_output(VirtIODevice *
 
 static void handle_input(VirtIODevice *vdev, VirtQueue *vq)
 {
+    qemu_notify_event(main_io_worker);
 }
 
 static uint32_t get_features(VirtIODevice *vdev, uint32_t features)