Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-12-14 Thread Kevin Wolf
Am 14.12.2021 um 15:45 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 23.11.2021 um 17:05 hat Markus Armbruster geschrieben: > >> Kevin Wolf writes: > >> > >> > This series adds QOM class definitions to the QAPI schema, introduces > >> > a new TypeInfo.instance_config() callba

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-12-14 Thread Markus Armbruster
Kevin Wolf writes: > Am 23.11.2021 um 17:05 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > This series adds QOM class definitions to the QAPI schema, introduces >> > a new TypeInfo.instance_config() callback that configures the object at >> > creation time (instead of setting

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-12-14 Thread Kevin Wolf
Am 14.12.2021 um 11:40 hat Peter Maydell geschrieben: > On Tue, 14 Dec 2021 at 10:26, Kevin Wolf wrote: > > Configuration is for creating objects, properties are for runtime after > > the creation. > > Well, yes and no. In a few places we have some properties which > are morally speaking configur

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-12-14 Thread Peter Maydell
On Tue, 14 Dec 2021 at 10:26, Kevin Wolf wrote: > Configuration is for creating objects, properties are for runtime after > the creation. Well, yes and no. In a few places we have some properties which are morally speaking configuration stuff, but which are runtime settable. This happens because

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-12-14 Thread Kevin Wolf
Am 23.11.2021 um 17:05 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > This series adds QOM class definitions to the QAPI schema, introduces > > a new TypeInfo.instance_config() callback that configures the object at > > creation time (instead of setting properties individually) and

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-23 Thread Markus Armbruster
Kevin Wolf writes: > This series adds QOM class definitions to the QAPI schema, introduces > a new TypeInfo.instance_config() callback that configures the object at > creation time (instead of setting properties individually) and is > separate from runtime property setters (which often used to be

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-05 Thread Kevin Wolf
Am 04.11.2021 um 16:52 hat Damien Hedde geschrieben: > On 11/4/21 10:07, Kevin Wolf wrote: > > Am 03.11.2021 um 22:26 hat Paolo Bonzini geschrieben: > > > On 11/3/21 18:29, Kevin Wolf wrote: > > > > This series adds QOM class definitions to the QAPI schema, introduces > > > > a new TypeInfo.instanc

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-04 Thread Damien Hedde
On 11/4/21 10:07, Kevin Wolf wrote: Am 03.11.2021 um 22:26 hat Paolo Bonzini geschrieben: On 11/3/21 18:29, Kevin Wolf wrote: This series adds QOM class definitions to the QAPI schema, introduces a new TypeInfo.instance_config() callback that configures the object at creation time (instead o

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-04 Thread Kevin Wolf
Am 04.11.2021 um 15:49 hat Paolo Bonzini geschrieben: > On 11/4/21 15:26, Kevin Wolf wrote: > > It took me a while to figure out how to deal with this, but I'm quite > > happy with the result. > > I like it too. > > > > > Oh, and I also wanted to say something about why not just directly using >

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-04 Thread Paolo Bonzini
On 11/4/21 15:26, Kevin Wolf wrote: It took me a while to figure out how to deal with this, but I'm quite happy with the result. I like it too. Oh, and I also wanted to say something about why not just directly using the class name, which was my first idea: 'foo': 'iothread' looks more like r

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-04 Thread Kevin Wolf
Am 04.11.2021 um 13:39 hat Paolo Bonzini geschrieben: > On 11/4/21 10:07, Kevin Wolf wrote: > > The class implementations always want to store only their "local" config > > options, but 'qom-config:classname' contains those of the parent class > > as well. > > Ah, I didn't understand that (hence t

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-04 Thread Paolo Bonzini
On 11/4/21 10:07, Kevin Wolf wrote: Also, for the obligatory bikeshedding remark, do you have any other plans or ideas for the colon-separated auto generated typenames? Having both the "namespace" (qom) and the more specific use (config) before the classname is a bit weird, compared to the exist

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-04 Thread Kevin Wolf
Am 03.11.2021 um 22:26 hat Paolo Bonzini geschrieben: > On 11/3/21 18:29, Kevin Wolf wrote: > > This series adds QOM class definitions to the QAPI schema, introduces > > a new TypeInfo.instance_config() callback that configures the object at > > creation time (instead of setting properties individu

Re: [RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-03 Thread Paolo Bonzini
On 11/3/21 18:29, Kevin Wolf wrote: This series adds QOM class definitions to the QAPI schema, introduces a new TypeInfo.instance_config() callback that configures the object at creation time (instead of setting properties individually) and is separate from runtime property setters (which often u

[RFC PATCH 00/12] QOM/QAPI integration part 1

2021-11-03 Thread Kevin Wolf
This series adds QOM class definitions to the QAPI schema, introduces a new TypeInfo.instance_config() callback that configures the object at creation time (instead of setting properties individually) and is separate from runtime property setters (which often used to be not really tested for runtim