|
From: | Avi Kivity |
Subject: | [Qemu-devel] Re: [patch uq/master 1/2] virtio-pci: wake up iothread on VIRTIO_PCI_QUEUE_NOTIFY |
Date: | Mon, 22 Feb 2010 16:20:52 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 |
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<address@hidden> Signed-off-by: Marcelo Tosatti<address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |