From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrLyw-0007qb-Sw for qemu-devel@nongnu.org; Tue, 25 Jun 2013 01:39:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrLyv-0006fO-QU for qemu-devel@nongnu.org; Tue, 25 Jun 2013 01:39:58 -0400 Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:51279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrLyv-0006fG-Hi for qemu-devel@nongnu.org; Tue, 25 Jun 2013 01:39:57 -0400 Received: by mail-ie0-f182.google.com with SMTP id s9so27017699iec.13 for ; Mon, 24 Jun 2013 22:39:57 -0700 (PDT) From: Liu Ping Fan Date: Wed, 26 Jun 2013 01:38:36 +0800 Message-Id: <1372181916-4676-4-git-send-email-pingfank@linux.vnet.ibm.com> In-Reply-To: <1372181916-4676-1-git-send-email-pingfank@linux.vnet.ibm.com> References: <1372181916-4676-1-git-send-email-pingfank@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 3/3] virtio-net: set referred object for virtio net's bh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Stefan Hajnoczi Expose object to bh, so bh will pin virtio-net against unplugged in parallel Signed-off-by: Liu Ping Fan --- hw/net/virtio-net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 1ea9556..7c0ded9 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -1124,6 +1124,7 @@ static void virtio_net_set_multiqueue(VirtIONet *n, int multiqueue) n->vqs[i].tx_vq = virtio_add_queue(vdev, 256, virtio_net_handle_tx_bh); n->vqs[i].tx_bh = qemu_bh_new(virtio_net_tx_bh, &n->vqs[i]); + qemu_bh_set_obj(n->vqs[i].tx_bh, OBJECT(n)); } n->vqs[i].tx_waiting = 0; -- 1.8.1.4