Re: [Qemu-devel] [PATCH 10/21] qdev: do not propagate properties to subclasses

2012-05-23 Thread Andreas Färber
Am 24.05.2012 01:46, schrieb Andreas Färber: > Am 02.05.2012 13:31, schrieb Paolo Bonzini: >> As soon as we'll look up properties along the inheritance chain, we >> will have duplicates if class A defines some properties and its >> subclass B does not define any, because class_b->props will be >> l

Re: [Qemu-devel] [PATCH 10/21] qdev: do not propagate properties to subclasses

2012-05-23 Thread Andreas Färber
Am 02.05.2012 13:31, schrieb Paolo Bonzini: > As soon as we'll look up properties along the inheritance chain, we > will have duplicates if class A defines some properties and its > subclass B does not define any, because class_b->props will be > left equal to class_a->props. > > The solution here

[Qemu-devel] [PATCH 10/21] qdev: do not propagate properties to subclasses

2012-05-02 Thread Paolo Bonzini
As soon as we'll look up properties along the inheritance chain, we will have duplicates if class A defines some properties and its subclass B does not define any, because class_b->props will be left equal to class_a->props. The solution here is to reintroduce the class_base_init TypeInfo callback