On 04/27/2010 07:34 AM, Amit Shah wrote:
From: Marcelo Tosatti<mtosa...@redhat.com>

Wake up iothread when buffers are consumed.

Signed-off-by: Marcelo Tosatti<mtosa...@redhat.com>
Signed-off-by: Amit Shah<amit.s...@redhat.com>

What's the race here?  This looks very odd to me.

Regards,

Anthony Liguori

---
  hw/virtio-serial-bus.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c
index 97694d5..ee868e9 100644
--- a/hw/virtio-serial-bus.c
+++ b/hw/virtio-serial-bus.c
@@ -417,6 +417,7 @@ static void handle_output(VirtIODevice *vdev, VirtQueue *vq)

  static void handle_input(VirtIODevice *vdev, VirtQueue *vq)
  {
+    qemu_notify_event();
  }

  static uint32_t get_features(VirtIODevice *vdev, uint32_t features)



Reply via email to