From patchwork Mon Jul 20 17:06:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 36380 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6KH69D1012691 for ; Mon, 20 Jul 2009 17:06:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752540AbZGTRGH (ORCPT ); Mon, 20 Jul 2009 13:06:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752509AbZGTRGG (ORCPT ); Mon, 20 Jul 2009 13:06:06 -0400 Received: from mx2.redhat.com ([66.187.237.31]:58883 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752477AbZGTRGG (ORCPT ); Mon, 20 Jul 2009 13:06:06 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6KH66TG006879 for ; Mon, 20 Jul 2009 13:06:06 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6KH65Np031421; Mon, 20 Jul 2009 13:06:05 -0400 Received: from localhost.localdomain (virtlab1.virt.bos.redhat.com [10.16.72.21]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6KH64mi031699; Mon, 20 Jul 2009 13:06:04 -0400 From: Glauber Costa To: kvm@vger.kernel.org Cc: avi@redhat.com Subject: [PATCH] replace io thread worker with qemu one Date: Mon, 20 Jul 2009 13:06:04 -0400 Message-Id: <1248109564-32540-1-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org replace qemu_kvm_notify_work() with qemu_notify_event(), that ends up calling it anyway. Signed-off-by: Glauber Costa --- hw/virtio-net.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index bda2397..75c9695 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -344,12 +344,9 @@ static void virtio_net_handle_rx(VirtIODevice *vdev, VirtQueue *vq) qemu_flush_queued_packets(n->vc); -#ifdef CONFIG_KVM /* We now have RX buffers, signal to the IO thread to break out of the select to re-poll the tap file descriptor */ - if (kvm_enabled()) - qemu_kvm_notify_work(); -#endif + qemu_notify_event(); } static int do_virtio_net_can_receive(VirtIONet *n, int bufsize)