Re: [Qemu-devel] [PATCH v2 05/12] virtio-serial: use aliases instead of duplicate qdev properties

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

[Qemu-devel] [PATCH v2 05/12] virtio-serial: use aliases instead of duplicate qdev properties

2014-09-29 Thread arei.gonglei
From: Gonglei virtio-serial-{pci, s390, ccw} all duplicate the qdev properties of their VirtIOSerial 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