Re: [Qemu-devel] [PATCH v4 7/7] qom: allow properties to be registered against classes

2015-11-18 Thread Andreas Färber
Am 06.11.2015 um 10:32 schrieb Daniel P. Berrange: > On Thu, Nov 05, 2015 at 07:12:39PM +0100, Andreas Färber wrote: >> Am 13.10.2015 um 15:18 schrieb Pavel Fedin: diff --git a/include/qom/object.h b/include/qom/object.h index 2a54515..38f41d3 100644 --- a/include/qom/object.h +

Re: [Qemu-devel] [PATCH v4 7/7] qom: allow properties to be registered against classes

2015-11-06 Thread Daniel P. Berrange
On Thu, Nov 05, 2015 at 07:12:39PM +0100, Andreas Färber wrote: > Am 13.10.2015 um 15:18 schrieb Pavel Fedin: > >> diff --git a/include/qom/object.h b/include/qom/object.h > >> index 2a54515..38f41d3 100644 > >> --- a/include/qom/object.h > >> +++ b/include/qom/object.h > [...] > >> @@ -964,8 +975,

Re: [Qemu-devel] [PATCH v4 7/7] qom: allow properties to be registered against classes

2015-11-05 Thread Andreas Färber
Am 13.10.2015 um 15:18 schrieb Pavel Fedin: >> diff --git a/include/qom/object.h b/include/qom/object.h >> index 2a54515..38f41d3 100644 >> --- a/include/qom/object.h >> +++ b/include/qom/object.h [...] >> @@ -964,8 +975,14 @@ typedef struct ObjectPropertyIterator >> ObjectPropertyIterator; >> *

Re: [Qemu-devel] [PATCH v4 7/7] qom: allow properties to be registered against classes

2015-10-13 Thread Pavel Fedin
Markus Armbruster; Paolo Bonzini; Andreas Färber > Subject: [Qemu-devel] [PATCH v4 7/7] qom: allow properties to be registered > against classes > > When there are many instances of a given class, registering > properties against the instance is wasteful of resources. The > m

[Qemu-devel] [PATCH v4 7/7] qom: allow properties to be registered against classes

2015-10-13 Thread Daniel P. Berrange
When there are many instances of a given class, registering properties against the instance is wasteful of resources. The majority of objects have a statically defined list of possible properties, so most of the properties are easily registerable against the class. Only those properties which are c