Re: [Qemu-devel] [PATCH v2 00/12] virtio: fix virtio child recount in transports

2014-09-30 Thread Michael S. Tsirkin
On Tue, Sep 30, 2014 at 10:41:11AM +0200, Paolo Bonzini wrote: > Il 30/09/2014 08:10, arei.gong...@huawei.com ha scritto: > > From: Gonglei > > > > virtio-$device-{pci, s390, ccw} all duplicate the > > qdev properties of their virtio child. This approach does > > not work well with string or poin

Re: [Qemu-devel] [PATCH v2 00/12] virtio: fix virtio child recount in transports

2014-09-30 Thread Paolo Bonzini
Il 30/09/2014 08:10, arei.gong...@huawei.com ha scritto: > From: Gonglei > > virtio-$device-{pci, s390, ccw} all duplicate the > qdev properties of their virtio child. This approach does > not work well with string or pointer properties since we > must be careful about leaking or double-freeing t

Re: [Qemu-devel] [PATCH v2 00/12] virtio: fix virtio child recount in transports

2014-09-30 Thread Gonglei (Arei)
> Subject: Re: [PATCH v2 00/12] virtio: fix virtio child recount in transports > > On Tue, 30 Sep 2014 14:10:26 +0800 > wrote: > > > From: Gonglei > > > > virtio-$device-{pci, s390, ccw} all duplicate the > > qdev properties of their virtio child. This approach does > > not work well with strin

Re: [Qemu-devel] [PATCH v2 00/12] virtio: fix virtio child recount in transports

2014-09-30 Thread Cornelia Huck
On Tue, 30 Sep 2014 14:10:26 +0800 wrote: > From: Gonglei > > virtio-$device-{pci, s390, ccw} all duplicate the > qdev properties of their virtio child. This approach does > not work well with string or pointer properties since we > must be careful about leaking or double-freeing them. > > Use

[Qemu-devel] [PATCH v2 00/12] virtio: fix virtio child recount in transports

2014-09-29 Thread arei.gonglei
From: Gonglei virtio-$device-{pci, s390, ccw} all duplicate the qdev properties of their virtio child. This approach does not work well with string or pointer properties since we must be careful about leaking or double-freeing them. Use the QOM alias property to forward property accesses to the