|
From: | Anthony Liguori |
Subject: | [Qemu-devel] Re: [PATCH v6 18/18] virtio-serial-bus: wake up iothread upon guest read notification |
Date: | Tue, 27 Apr 2010 12:41:27 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0 |
On 04/27/2010 07:34 AM, Amit Shah wrote:
From: Marcelo Tosatti<address@hidden> Wake up iothread when buffers are consumed. Signed-off-by: Marcelo Tosatti<address@hidden> Signed-off-by: Amit Shah<address@hidden>
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)
[Prev in Thread] | Current Thread | [Next in Thread] |