All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: "Kevin Wolf" <kwolf@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Eduardo Habkost" <ehabkost@redhat.com>,
	"Jason Wang" <jasowang@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Max Reitz" <mreitz@redhat.com>
Subject: Re: Configuring onboard devices
Date: Thu, 30 Apr 2020 16:38:09 +0200	[thread overview]
Message-ID: <87o8r9ca3y.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20200430105303.GK2084570@redhat.com> ("Daniel P. Berrangé"'s message of "Thu, 30 Apr 2020 11:53:03 +0100")

Daniel P. Berrangé <berrange@redhat.com> writes:

> On Thu, Apr 30, 2020 at 11:45:40AM +0100, Peter Maydell wrote:
>> On Thu, 30 Apr 2020 at 11:34, Daniel P. Berrangé <berrange@redhat.com> wrote:
>> > We "merely" need a new query language targetted to QEMU's qtree
>> > structure, which we can expose in the CLI that gives unique access
>> > to every possible property.
>> 
>> Past resistance to this has been grounded in not wanting to
>> expose the exact arrangement of the qtree as a user-facing
>> thing that needs to be maintained for back-compat reasons.
>
> I could be missing a key difference, but I thought we already exposed
> the qtree in QMP  via qom-list, qom-get, qom-set ?  Libvirt uses
> these commands for reading various properties.  I guess 'qom-set' is
> really defining the kind of query string language I was illustrating
> already. So mapping qom-set to the CLI as-is would not be worse than
> what we already support in QMP

We like to pretend QOM introspection is not a stable interface.  Except
for the parts that have to be, because they're the only way to probe for
certain things.  We're not telling you which parts, because we have no
idea ourselves.

>> Eg in your example the i440fx-pcihost sits directly on the
>> 'system bus', but this is an odd artefact of the old qbus/qdev
>> system and doesn't really reflect the way the system is built
>> up in terms of QOM components; we might one day want to
>> restructure things there, which would AIUI break a
>> command line like

If we replace qdev paths by QOM paths, the "doesn't really reflect the
way the system is built up in terms of QOM components" goes away.

However, the "we might one day want to restructure things" argument also
applies to QOM.

At some point we need to decide which part of the cake to feed to users,
and which part to keep for developers to mess with.

>> > To uniquely identify this we can have a string:
>> >
>> >  /dev[1]/bus[pci/0]/dev[id=balloon0]/bus[virtio-bus]/dev[0]/deflate-on-oom=true
>
> Regards,
> Daniel



  reply	other threads:[~2020-04-30 14:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29 15:28 Failing property setters + hardwired devices + -global = a bad day Markus Armbruster
2020-04-29 15:39 ` Paolo Bonzini
2020-04-29 16:23   ` Eduardo Habkost
2020-04-29 15:57 ` Daniel P. Berrangé
2020-04-30  7:09   ` Markus Armbruster
2020-04-30  9:27     ` Peter Maydell
2020-04-30 10:03       ` Configuring onboard devices (was: Failing property setters + hardwired devices + -global = a bad day) Markus Armbruster
2020-04-30 10:29         ` Mark Cave-Ayland
2020-04-30 14:11           ` Configuring onboard devices Markus Armbruster
2020-04-30 14:32             ` Mark Cave-Ayland
2020-04-30 15:20               ` Markus Armbruster
2020-04-30 16:56                 ` Mark Cave-Ayland
2020-05-02  5:47                   ` Markus Armbruster
2020-05-03 22:13                     ` Mark Cave-Ayland
2020-05-04 16:30                       ` Eduardo Habkost
2020-04-30 10:34         ` Configuring onboard devices (was: Failing property setters + hardwired devices + -global = a bad day) Daniel P. Berrangé
2020-04-30 10:45           ` Peter Maydell
2020-04-30 10:53             ` Daniel P. Berrangé
2020-04-30 14:38               ` Markus Armbruster [this message]
2020-04-30 10:54             ` Mark Cave-Ayland
2020-04-30 14:27           ` Configuring onboard devices 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=87o8r9ca3y.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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.