Re: [Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-12 Thread Eric Blake
On 09/09/2015 10:16 AM, Paolo Bonzini wrote: >>> Is returning NULL without setting an error okay? >>> >>> Should it return qnull() instead? Then the QMP return value would be >>> JSON null. > > JSON null support in QObject is new, it should be the result of > object_property_get_qobject() or eve

Re: [Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-10 Thread Markus Armbruster
TL;DR: Andreas, there's one question specifically for you, search for "QOM:". Andreas Färber writes: > Am 09.09.2015 um 17:22 schrieb Markus Armbruster: >> Andreas Färber writes: >>> Am 09.09.2015 um 16:38 schrieb Markus Armbruster: I ran into this: $ qemu-system-ppc64 -nodef

Re: [Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-09 Thread Markus Armbruster
Andreas Färber writes: > Hi Markus, > > Am 09.09.2015 um 16:38 schrieb Markus Armbruster: >> I ran into this: >> >> $ qemu-system-ppc64 -nodefaults -S -display none -monitor stdio >> -machine pseries-2.4 >> QEMU 2.4.50 monitor - type 'help' for more information >> (qemu) qom-list /ma

Re: [Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-09 Thread Andreas Färber
Am 09.09.2015 um 18:16 schrieb Paolo Bonzini: > On 09/09/2015 18:04, Andreas Färber wrote: Should qom-list really fail DeviceNotFound? I find it rather confusing. For what it's worth, attempting to read a directory fails with EISDIR, not ENOENT. >> Listing a non-existing directory o

Re: [Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-09 Thread Paolo Bonzini
On 09/09/2015 18:04, Andreas Färber wrote: >> > Should qom-list really fail DeviceNotFound? I find it rather confusing. >> > For what it's worth, attempting to read a directory fails with EISDIR, >> > not ENOENT. > Listing a non-existing directory on my system results in: > > ls: cannot acces

Re: [Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-09 Thread Andreas Färber
Am 09.09.2015 um 17:22 schrieb Markus Armbruster: > Andreas Färber writes: >> Am 09.09.2015 um 16:38 schrieb Markus Armbruster: >>> I ran into this: >>> >>> $ qemu-system-ppc64 -nodefaults -S -display none -monitor stdio >>> -machine pseries-2.4 >>> QEMU 2.4.50 monitor - type 'help' for mo

Re: [Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-09 Thread Andreas Färber
Hi Markus, Am 09.09.2015 um 16:38 schrieb Markus Armbruster: > I ran into this: > > $ qemu-system-ppc64 -nodefaults -S -display none -monitor stdio -machine > pseries-2.4 > QEMU 2.4.50 monitor - type 'help' for more information > (qemu) qom-list /machine/unattached/device[5]/dr-conne

[Qemu-devel] Confused by QOM: /machine/unattached/device[5]/dr-connector[255]/fdt

2015-09-09 Thread Markus Armbruster
I ran into this: $ qemu-system-ppc64 -nodefaults -S -display none -monitor stdio -machine pseries-2.4 QEMU 2.4.50 monitor - type 'help' for more information (qemu) qom-list /machine/unattached/device[5]/dr-connector[255] fdt (struct) entity-sense (uint32) name (string)