From: Andrea Bolognani <abologna@redhat.com>
To: Alexey Kardashevskiy <aik@ozlabs.ru>,
Markus Armbruster <armbru@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>,
qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [RFC PATCH qemu] qmp: Add qom-list-properties to list QOM object properties
Date: Wed, 07 Feb 2018 13:18:31 +0100 [thread overview]
Message-ID: <1518005911.11875.3.camel@redhat.com> (raw)
In-Reply-To: <8d3a65e6-e62b-6506-fb43-bb83f5ee7828@ozlabs.ru>
On Mon, 2018-02-05 at 14:30 +1100, Alexey Kardashevskiy wrote:
> On 02/02/18 18:37, Markus Armbruster wrote:
> > > > Likewise for properties created differently (say with a different type)
> > > > in non-default configuration. We can hope that no such beasts exist.
> > > > Since properties get created by code, and code can do anything, we're
> > > > reduced to hope. Data is so much easier to reason about than code.
> > > >
> > > > Three building blocks: instantiate, qom-list, destroy. Do we want the
> > > > building blocks, or do we want their combination qom-list-properties?
> > >
> > > Building blocks as QEMU internal helpers to split my
> > > qmp_qom_list_properties() into? These are not going to be huge and
> > > "destroy" is literally object_unref(obj) which does not seem very useful.
> > > Or I missed the point here?
> >
> > My question is whether the QMP interface should provide the building
> > blocks, or only compositions.
>
> instantiate but not realize? Not sure we have users for that.
We already have scaffolding for dealing with device-list-properties
in libvirt, so the implementation of qom-list-properties proposed
by Alexey would probably be able to reuse a lot of code and could
be integrated very quickly. So there's that.
Would there be any other known use case for providing the building
blocks?
--
Andrea Bolognani / Red Hat / Virtualization
next prev parent reply other threads:[~2018-02-07 12:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 5:09 [Qemu-devel] [RFC PATCH qemu] qmp: Add qom-list-properties to list QOM object properties Alexey Kardashevskiy
2018-01-19 5:19 ` David Gibson
2018-01-19 6:15 ` Alexey Kardashevskiy
2018-01-19 6:22 ` Alexey Kardashevskiy
2018-01-19 14:34 ` Andrea Bolognani
2018-01-23 10:08 ` Andrea Bolognani
2018-01-23 11:20 ` David Gibson
2018-01-23 12:03 ` Andrea Bolognani
2018-01-23 12:49 ` David Gibson
2018-01-23 13:33 ` Andrea Bolognani
2018-01-31 9:03 ` Alexey Kardashevskiy
2018-01-31 17:22 ` Markus Armbruster
2018-01-31 17:22 ` Markus Armbruster
2018-02-02 2:02 ` Alexey Kardashevskiy
2018-02-02 7:37 ` Markus Armbruster
2018-02-05 3:30 ` Alexey Kardashevskiy
2018-02-07 12:18 ` Andrea Bolognani [this message]
2018-02-21 3:36 ` Alexey Kardashevskiy
2018-02-21 10:01 ` Paolo Bonzini
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=1518005911.11875.3.camel@redhat.com \
--to=abologna@redhat.com \
--cc=aik@ozlabs.ru \
--cc=armbru@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).