From: Marcelo Tosatti Subject: [patch uq/master 1/2] virtio-pci: wake up iothread on VIRTIO_PCI_QUEUE_NOTIFY Date: Mon, 22 Feb 2010 10:59:07 -0300 Message-ID: <20100222140209.878250600@amt.cnet> References: <20100222135906.347393434@amt.cnet> Cc: avi@redhat.com, Marcelo Tosatti To: kvm@vger.kernel.org, qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39328 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753260Ab0BVODP (ORCPT ); Mon, 22 Feb 2010 09:03:15 -0500 Content-Disposition: inline; filename=virtio-iothread-wake Sender: kvm-owner@vger.kernel.org List-ID: 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 Signed-off-by: Marcelo Tosatti 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; case VIRTIO_PCI_STATUS: vdev->status = val & 0xFF;