[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 02/12] virtio-net: fix virtio-net child refco
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-devel] [PATCH v2 02/12] virtio-net: fix virtio-net child refcount in transports |
Date: |
Tue, 30 Sep 2014 10:19:13 +0200 |
On Tue, 30 Sep 2014 14:10:28 +0800
<address@hidden> wrote:
> From: Gonglei <address@hidden>
>
> object_initialize() leaves the object with a refcount of 1.
> object_property_add_child() adds its own reference which is dropped
> again when the property is deleted.
>
> The upshot of this is that we always have a refcount >= 1. Upon hot
> unplug the virtio-net child is not finalized!
>
> Drop our reference after the child property has been added to the
> parent.
>
> Signed-off-by: Gonglei <address@hidden>
> ---
> hw/s390x/s390-virtio-bus.c | 1 +
> hw/s390x/virtio-ccw.c | 1 +
> hw/virtio/virtio-pci.c | 1 +
> 3 files changed, 3 insertions(+)
Reviewed-by: Cornelia Huck <address@hidden>
- [Qemu-devel] [PATCH v2 05/12] virtio-serial: use aliases instead of duplicate qdev properties, (continued)
[Qemu-devel] [PATCH v2 02/12] virtio-net: fix virtio-net child refcount in transports, arei.gonglei, 2014/09/30
- Re: [Qemu-devel] [PATCH v2 02/12] virtio-net: fix virtio-net child refcount in transports,
Cornelia Huck <=
[Qemu-devel] [PATCH v2 10/12] virtio-9p: use aliases instead of duplicate qdev properties, arei.gonglei, 2014/09/30
Re: [Qemu-devel] [PATCH v2 00/12] virtio: fix virtio child recount in transports, Cornelia Huck, 2014/09/30
Re: [Qemu-devel] [PATCH v2 00/12] virtio: fix virtio child recount in transports, Paolo Bonzini, 2014/09/30