qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Andreas Färber" <afaerber@suse.de>,
	"Natalia Fursova" <Natalia.Fursova@ispras.ru>
Cc: qemu-devel@nongnu.org, 'Паша' <Pavel.Dovgaluk@ispras.ru>,
	armbru@redhat.com
Subject: Re: [Qemu-devel] qgraph
Date: Mon, 10 Jun 2019 14:03:42 +0200	[thread overview]
Message-ID: <e4fe4dc0-f3c4-a051-d39d-afd7bfdc680d@redhat.com> (raw)
In-Reply-To: <67806828-f666-0c9c-00fc-b520f15013d9@suse.de>

On 10/06/19 13:57, Andreas Färber wrote:
> Your question doesn't make sense grammatically or conceptually. As Paolo
> explained below, QOM is a pure object model, with object types/classes
> and properties. Buses are just object instances attached as properties
> and don't necessarily even need their own type of bus object (e.g, CPU).
> An answer you don't like doesn't change by asking it to other people...
> The information is all there, you just need to interpret it correctly.
> 
> There is no technical discussion (no concrete proposal of yours) to
> comment on here, and kindly refer to last week's change of maintainers.
> 
> You would be better off just explaining what you really want to achieve.

Well, that was explained upthread---finding out what device can be
plugged where.

Let's see what is in QOM right now:

$ qemu-kvm -qmp unix:foo.sock,server,nowait -device virtio-scsi-pci,id=vs
$ ./qmp/qom-list -s ~/foo.sock /machine/peripheral/vs|less

There is a "virtio-bus" here, and iside it there is a scsi-bus.

$ ./qmp/qom-list -s ~/foo.sock /machine/peripheral/vs/virtio-bus/child[0]/
vs.0/

I guess you could add to virtio-scsi-pci a class property for the bus,
and then make "vs.0" an alias to that class property.  This would allow
you find buses by enumerating the class properties.

Paolo


  reply	other threads:[~2019-06-10 12:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5cf62de9.1c69fb81.66fc.8f4fSMTPIN_ADDED_BROKEN@mx.google.com>
2019-06-04 15:06 ` [Qemu-devel] qgraph Paolo Bonzini
2019-06-05 12:34   ` Natalia Fursova
     [not found]   ` <5cf7b6e6.1c69fb81.1cdca.e260SMTPIN_ADDED_BROKEN@mx.google.com>
2019-06-05 13:07     ` Paolo Bonzini
2019-06-05 14:22       ` Natalia Fursova
2019-06-10  9:53       ` Natalia Fursova
2019-06-10 11:57         ` Andreas Färber
2019-06-10 12:03           ` Paolo Bonzini [this message]
2019-06-10 13:28             ` Andreas Färber
2019-06-10 13:52               ` Paolo Bonzini
2019-06-10 16:12                 ` Andreas Färber
2019-06-10 16:18                   ` Paolo Bonzini
2019-06-11  8:56                     ` Markus Armbruster
2019-06-11 10:31                       ` Paolo Bonzini
2019-06-11 13:39                         ` Markus Armbruster
2019-06-11 13:44                           ` Paolo Bonzini
2019-07-02 11:44                             ` Natalia Fursova
2019-07-02 15:26                               ` Markus Armbruster
2019-07-03  8:19                                 ` Natalia Fursova
     [not found]                             ` <5d1b4524.1c69fb81.ddba5.77bdSMTPIN_ADDED_BROKEN@mx.google.com>
2019-07-02 11:54                               ` Peter Maydell
2019-06-11 13:51                         ` Andreas Färber
2019-06-04  8:37 Natalia Fursova

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=e4fe4dc0-f3c4-a051-d39d-afd7bfdc680d@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=Natalia.Fursova@ispras.ru \
    --cc=Pavel.Dovgaluk@ispras.ru \
    --cc=afaerber@suse.de \
    --cc=armbru@redhat.com \
    --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 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).