From: Eduardo Habkost <ehabkost@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Stefan Hajnoczi" <stefanha@gmail.com>,
"John Snow" <jsnow@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
kvm-devel <kvm@vger.kernel.org>,
"Markus Armbruster" <armbru@redhat.com>,
"Daniel Berrange" <berrange@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: KVM call for agenda for 2020-10-06
Date: Fri, 9 Oct 2020 12:45:48 -0400 [thread overview]
Message-ID: <20201009164548.GC7303@habkost.net> (raw)
In-Reply-To: <20201008080345.GB4672@linux.fritz.box>
On Thu, Oct 08, 2020 at 10:03:45AM +0200, Kevin Wolf wrote:
> Am 07.10.2020 um 19:50 hat Paolo Bonzini geschrieben:
> > On 06/10/20 20:21, Stefan Hajnoczi wrote:
> > > * Does command-line order matter?
> > > * Two options: allow any order OR left-to-right ordering
> > > * Andrea Bolognani: Most users expect left-to-right ordering,
> > > why allow any order?
> > > * Eduardo Habkost: Can we enforce left-to-right ordering or do
> > > we need to follow the deprecation process?
> > > * Daniel Berrange: Solve compability by introducing new
> > > binaries without the burden of backwards compability
> >
> > I think "new binaries" shouldn't even have a command line; all
> > configuration should happen through QMP commands. Those are naturally
> > time-ordered, which is equivalent to left-to-right, and therefore the
> > question is sidestepped. Perhaps even having a command line in
> > qemu-storage-daemon was a mistake.
> >
> > For "old binaries" we are not adding too many options, so apart from the
> > nasty distinction between early and late objects we're at least not
> > making it worse.
> >
> > The big question to me is whether the configuration should be
> > QAPI-based, that is based on QAPI structs, or QMP-based. If the latter,
> > "object-add" (and to a lesser extent "device-add") are fine mechanisms
> > for configuration. There is still need for better QOM introspection,
> > but it would be much simpler than doing QOM object creation via QAPI
> > struct, if at all possible.
>
> I would strongly vote for QAPI-based. It doesn't have to be fully based
> on QAPI structs internally, but the defining property for me is that the
> external interface is described in the QAPI schema (which implies using
> QAPI structs for the external facing code).
>
> Not only is it a PITA to work with things like "gen": false or "props":
> "any", but having two systems to configure things side by side is also
> highly inconsistent.
>
> I have recently discussed object-add with Markus, or to be more precise,
> a QAPIfied --object in qsd wrapping it. This doesn't work well without
> having a schema. I believe the right thing to do there is build a QAPI
> schema describing the existing QOM properties in a first step (which
> already gives you all of the advantages of QAPI like introspection), and
> then in a second step generate the respective QOM code for initialising
> the properties from the schema instead of duplicating it.
>
> This can get challenging with dynamic properties, but as far as I can
> see, user creatable objects only have class properties or object
> properties created right in .instance_init (which should be equivalent).
I've just submitted a series to ensure 100% of
TYPE_USER_CREATABLE types have only class properties:
https://lore.kernel.org/qemu-devel/20201009160122.1662082-1-ehabkost@redhat.com
>
> As the number of user creatable objects isn't too large, this shouldn't
> be too hard. I'm less sure about device-add, though in theory the same
> approch would probably result in the best interface.
Doing the same for all user creatable device types would be nice
too. We can use the property locking mechanism from the series above
to find out how bad the situation is.
--
Eduardo
WARNING: multiple messages have this Message-ID (diff)
From: Eduardo Habkost <ehabkost@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: "Daniel Berrange" <berrange@redhat.com>,
kvm-devel <kvm@vger.kernel.org>,
"Stefan Hajnoczi" <stefanha@gmail.com>,
"Markus Armbruster" <armbru@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"John Snow" <jsnow@redhat.com>
Subject: Re: KVM call for agenda for 2020-10-06
Date: Fri, 9 Oct 2020 12:45:48 -0400 [thread overview]
Message-ID: <20201009164548.GC7303@habkost.net> (raw)
In-Reply-To: <20201008080345.GB4672@linux.fritz.box>
On Thu, Oct 08, 2020 at 10:03:45AM +0200, Kevin Wolf wrote:
> Am 07.10.2020 um 19:50 hat Paolo Bonzini geschrieben:
> > On 06/10/20 20:21, Stefan Hajnoczi wrote:
> > > * Does command-line order matter?
> > > * Two options: allow any order OR left-to-right ordering
> > > * Andrea Bolognani: Most users expect left-to-right ordering,
> > > why allow any order?
> > > * Eduardo Habkost: Can we enforce left-to-right ordering or do
> > > we need to follow the deprecation process?
> > > * Daniel Berrange: Solve compability by introducing new
> > > binaries without the burden of backwards compability
> >
> > I think "new binaries" shouldn't even have a command line; all
> > configuration should happen through QMP commands. Those are naturally
> > time-ordered, which is equivalent to left-to-right, and therefore the
> > question is sidestepped. Perhaps even having a command line in
> > qemu-storage-daemon was a mistake.
> >
> > For "old binaries" we are not adding too many options, so apart from the
> > nasty distinction between early and late objects we're at least not
> > making it worse.
> >
> > The big question to me is whether the configuration should be
> > QAPI-based, that is based on QAPI structs, or QMP-based. If the latter,
> > "object-add" (and to a lesser extent "device-add") are fine mechanisms
> > for configuration. There is still need for better QOM introspection,
> > but it would be much simpler than doing QOM object creation via QAPI
> > struct, if at all possible.
>
> I would strongly vote for QAPI-based. It doesn't have to be fully based
> on QAPI structs internally, but the defining property for me is that the
> external interface is described in the QAPI schema (which implies using
> QAPI structs for the external facing code).
>
> Not only is it a PITA to work with things like "gen": false or "props":
> "any", but having two systems to configure things side by side is also
> highly inconsistent.
>
> I have recently discussed object-add with Markus, or to be more precise,
> a QAPIfied --object in qsd wrapping it. This doesn't work well without
> having a schema. I believe the right thing to do there is build a QAPI
> schema describing the existing QOM properties in a first step (which
> already gives you all of the advantages of QAPI like introspection), and
> then in a second step generate the respective QOM code for initialising
> the properties from the schema instead of duplicating it.
>
> This can get challenging with dynamic properties, but as far as I can
> see, user creatable objects only have class properties or object
> properties created right in .instance_init (which should be equivalent).
I've just submitted a series to ensure 100% of
TYPE_USER_CREATABLE types have only class properties:
https://lore.kernel.org/qemu-devel/20201009160122.1662082-1-ehabkost@redhat.com
>
> As the number of user creatable objects isn't too large, this shouldn't
> be too hard. I'm less sure about device-add, though in theory the same
> approch would probably result in the best interface.
Doing the same for all user creatable device types would be nice
too. We can use the property locking mechanism from the series above
to find out how bad the situation is.
--
Eduardo
next prev parent reply other threads:[~2020-10-09 16:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-02 9:09 KVM call for agenda for 2020-10-06 Juan Quintela
2020-10-02 15:16 ` John Snow
2020-10-05 14:46 ` Stefan Hajnoczi
2020-10-05 14:46 ` Stefan Hajnoczi
2020-10-06 18:21 ` Stefan Hajnoczi
2020-10-06 18:21 ` Stefan Hajnoczi
2020-10-07 17:50 ` Paolo Bonzini
2020-10-07 17:50 ` Paolo Bonzini
2020-10-07 18:04 ` Daniel P. Berrangé
2020-10-07 18:04 ` Daniel P. Berrangé
2020-10-08 11:25 ` Markus Armbruster
2020-10-08 14:15 ` Paolo Bonzini
2020-10-08 8:03 ` Kevin Wolf
2020-10-08 8:03 ` Kevin Wolf
2020-10-09 16:45 ` Eduardo Habkost [this message]
2020-10-09 16:45 ` Eduardo Habkost
2020-10-10 4:41 ` Markus Armbruster
2020-10-10 4:41 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201009164548.GC7303@habkost.net \
--to=ehabkost@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=jsnow@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.