Re: [Qemu-devel] qgraph

2019-07-03 Thread Natalia Fursova
Thank you! С уважением, Наталья -Original Message- From: Markus Armbruster [mailto:arm...@redhat.com] Sent: Tuesday, July 02, 2019 6:26 PM To: Natalia Fursova Cc: 'Paolo Bonzini'; 'Andreas Färber'; 'Паша'; qemu-devel@nongnu.org Subject: Re: [Qemu-d

Re: [Qemu-devel] qgraph

2019-07-02 Thread Markus Armbruster
"Natalia Fursova" writes: > Hi there again! > Thank you for your answers, I have new question. > > I want to identify PCI devices (e.g. network cards) and observed one > strange thing. I use qmp command "qom-list-type" and build tree from > it output. Some items don't have parent and don't give

Re: [Qemu-devel] qgraph

2019-07-02 Thread Peter Maydell
On Tue, 2 Jul 2019 at 12:51, Natalia Fursova wrote: > > Hi there again! > Thank you for your answers, I have new question. > > I want to identify PCI devices (e.g. network cards) and observed one strange > thing. I use qmp command "qom-list-type" and build tree from it output. Some > items don't

Re: [Qemu-devel] qgraph

2019-07-02 Thread Natalia Fursova
Andreas Färber; 'Паша'; qemu-devel@nongnu.org Subject: Re: [Qemu-devel] qgraph On 11/06/19 15:39, Markus Armbruster wrote: >> Right, and we should move more towards class-based properties so that >> the dynamic nature of QOM is only used for the bare minimum needed (e.g. >

Re: [Qemu-devel] qgraph

2019-06-11 Thread Paolo Bonzini
On 11/06/19 15:39, Markus Armbruster wrote: >> Right, and we should move more towards class-based properties so that >> the dynamic nature of QOM is only used for the bare minimum needed (e.g. >> memory regions). > What are we doing to make new code conform to that? > > What are we doing to update

Re: [Qemu-devel] qgraph

2019-06-11 Thread Andreas Färber
Am 11.06.19 um 12:31 schrieb Paolo Bonzini: > On 11/06/19 10:56, Markus Armbruster wrote: >> Yes, this is how introspection (both QMP and QOM) is commonly used. >> Just keep in mind one difference: QMP is static, QOM is dynamic. >> >> QMP being static means it's defined at compile time. So is the

Re: [Qemu-devel] qgraph

2019-06-11 Thread Markus Armbruster
Paolo Bonzini writes: > On 11/06/19 10:56, Markus Armbruster wrote: >> Yes, this is how introspection (both QMP and QOM) is commonly used. >> Just keep in mind one difference: QMP is static, QOM is dynamic. >> >> QMP being static means it's defined at compile time. So is the value of >> query-q

Re: [Qemu-devel] qgraph

2019-06-11 Thread Paolo Bonzini
On 11/06/19 10:56, Markus Armbruster wrote: > Yes, this is how introspection (both QMP and QOM) is commonly used. > Just keep in mind one difference: QMP is static, QOM is dynamic. > > QMP being static means it's defined at compile time. So is the value of > query-qmp-schema. Same QEMU build, sa

Re: [Qemu-devel] qgraph

2019-06-11 Thread Markus Armbruster
Paolo Bonzini writes: > On 10/06/19 18:12, Andreas Färber wrote: >> Am 10.06.19 um 15:52 schrieb Paolo Bonzini: >>> On 10/06/19 15:28, Andreas Färber wrote: Am 10.06.19 um 14:03 schrieb Paolo Bonzini: > Well, that was explained upthread---finding out what device can be > plugged wher

Re: [Qemu-devel] qgraph

2019-06-10 Thread Paolo Bonzini
On 10/06/19 18:12, Andreas Färber wrote: > Am 10.06.19 um 15:52 schrieb Paolo Bonzini: >> On 10/06/19 15:28, Andreas Färber wrote: >>> So if we want a new QMP operation, the most sense would probably make >>> where-can-I-attach-type(foo) returning a list of QOM paths, showing only >>> the first fre

Re: [Qemu-devel] qgraph

2019-06-10 Thread Andreas Färber
Am 10.06.19 um 15:52 schrieb Paolo Bonzini: > On 10/06/19 15:28, Andreas Färber wrote: >> So if we want a new QMP operation, the most sense would probably make >> where-can-I-attach-type(foo) returning a list of QOM paths, showing only >> the first free slot per bus. That would allow a more efficie

Re: [Qemu-devel] qgraph

2019-06-10 Thread Paolo Bonzini
On 10/06/19 15:28, Andreas Färber wrote: > So if we want a new QMP operation, the most sense would probably make > where-can-I-attach-type(foo) returning a list of QOM paths, showing only > the first free slot per bus. That would allow a more efficient lookup > implementation inside QEMU than needi

Re: [Qemu-devel] qgraph

2019-06-10 Thread Andreas Färber
Am 10.06.19 um 14:03 schrieb Paolo Bonzini: > 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

Re: [Qemu-devel] qgraph

2019-06-10 Thread Paolo Bonzini
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 the

Re: [Qemu-devel] qgraph

2019-06-10 Thread Andreas Färber
just explaining what you really want to achieve. Regards, Andreas > -Original Message- > From: Natalia Fursova [mailto:natalia.furs...@ispras.ru] > Sent: Wednesday, June 05, 2019 5:23 PM > To: 'Paolo Bonzini'; 'qemu-devel@nongnu.org'; 'Паша' >

Re: [Qemu-devel] qgraph

2019-06-10 Thread Natalia Fursova
] Sent: Wednesday, June 05, 2019 5:23 PM To: 'Paolo Bonzini'; 'qemu-devel@nongnu.org'; 'Паша' Subject: RE: [Qemu-devel] qgraph I see. We need this opportunity and want to implement it. Will it ok for QOM conception? Best regards, Natalia -Original Me

Re: [Qemu-devel] qgraph

2019-06-05 Thread Natalia Fursova
ubject: Re: [Qemu-devel] qgraph On 05/06/19 14:34, Natalia Fursova wrote: > > Thank you for your answer. I would like to clarify something about the qmp > commands. > For example, consider SCSI controller "lsi53c895a". For getting information > we use two commands: &qu

Re: [Qemu-devel] qgraph

2019-06-05 Thread Paolo Bonzini
On 05/06/19 14:34, Natalia Fursova wrote: > > Thank you for your answer. I would like to clarify something about the qmp > commands. > For example, consider SCSI controller "lsi53c895a". For getting information > we use two commands: "device-list-properties" and "qom-list-properties". > Output con

Re: [Qemu-devel] qgraph

2019-06-05 Thread Natalia Fursova
a; qemu-devel@nongnu.org; Паша Subject: Re: [Qemu-devel] qgraph On 04/06/19 10:37, Natalia Fursova wrote: > Hello, Paolo! > > We develop GUI for Qemu and want to implement graphical interface for > configuring the device tree. To do this we need to detect list of the > devices support

Re: [Qemu-devel] qgraph

2019-06-04 Thread Paolo Bonzini
On 04/06/19 10:37, Natalia Fursova wrote: > Hello, Paolo! > > We develop GUI for Qemu and want to implement graphical interface for > configuring the device tree. To do this we need to detect list of the > devices supported by any specific platform. > > Then we use this tree for command line gene

Re: [Qemu-devel] qgraph

2019-06-04 Thread Natalia Fursova
ping Best regards, Natalia From: Наталья Фурсова [mailto:natalia.furs...@ispras.ru] Sent: Wednesday, May 29, 2019 2:57 PM To: 'qemu-devel@nongnu.org'; 'pbonz...@redhat.com'; Паша (pavel.dovga...@ispras.ru) Subject: qgraph Hello, Paolo! We develop GUI for Qemu and want to imple

[Qemu-devel] qgraph

2019-05-29 Thread Наталья Фурсова
Hello, Paolo! We develop GUI for Qemu and want to implement graphical interface for configuring the device tree. To do this we need to detect list of the devices supported by any specific platform. Then we use this tree for command line generation. Existing qmp commands don't supply enough