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

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

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

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