On 02/22/2010 03:59 PM, Marcelo Tosatti wrote:
VIRTIO_PCI_QUEUE_NOTIFY is used to inform availability of new buffers,
so wakeup the iothread to process that information immediately.

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

Index: qemu/hw/virtio-pci.c
===================================================================
--- qemu.orig/hw/virtio-pci.c
+++ qemu/hw/virtio-pci.c
@@ -204,6 +204,7 @@ static void virtio_ioport_write(void *op
          break;
      case VIRTIO_PCI_QUEUE_NOTIFY:
          virtio_queue_notify(vdev, val);
+        qemu_notify_event();
          break;

virtio_queue_notify() will call ->handle_output(), which should either do what's needed to be done, or wake up some iothread itself.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to