On Wed, Jan 17, 2018 at 10:46:45AM +1100, Alexey Kardashevskiy wrote: > On 17/01/18 10:30, David Gibson wrote: > > On Wed, Jan 17, 2018 at 10:26:28AM +1100, Alexey Kardashevskiy wrote: > >> On 17/01/18 09:34, David Gibson wrote: > >>> On Tue, Jan 16, 2018 at 03:46:20PM +0100, Andrea Bolognani wrote: > >>>> On Wed, 2018-01-17 at 00:54 +1100, David Gibson wrote: > >>>>>> Correct me if I'm wrong, but it seems to me like there's no way > >>>>>> to figure out through QMP whether these new machine options can be > >>>>>> used for a given QEMU binary. > >>>>> > >>>>> Uh, I don't think so. These are machine options like any other (just > >>>>> constructed a bit differently). So they'll appear in qemu -machine > >>>>> pseries,? and I believe that info can also be retrieved with QMP. > >>>> > >>>> Yes, they will indeed show up in the output of -machine pseries,? > >>>> but there's AFAICT no way to retrieve them via QMP. > >>> > >>> Really!? I thought introspecting object properties was QMP's bread > >>> and butter. > >> > >> > >> On a guest started with '-S': > >> {"execute": "qom-list", "arguments": {"path": "/machine"}} > >> > >> returns: > >> { 'return': [ {'name': 'graphics', 'type': 'bool'}, > >> {'name': 'phandle-start', 'type': 'int'}, > >> {'name': 'dump-guest-core', 'type': 'bool'}, > >> {'name': 'kernel-irqchip', 'type': 'OnOffSplit'}, > >> {'name': 'accel', 'type': 'string'}, > >> {'name': 'append', 'type': 'string'}, > >> {'name': 'dumpdtb', 'type': 'string'}, > >> {'name': 'igd-passthru', 'type': 'bool'}, > >> {'name': 'dt-compatible', 'type': 'string'}, > >> {'name': 'kernel', 'type': 'string'}, > >> {'name': 'usb', 'type': 'bool'}, > >> {'name': 'suppress-vmdesc', 'type': 'bool'}, > >> {'name': 'dtb', 'type': 'string'}, > >> {'name': 'firmware', 'type': 'string'}, > >> {'name': 'mem-merge', 'type': 'bool'}, > >> {'name': 'initrd', 'type': 'string'}, > >> {'name': 'enforce-config-section', 'type': 'bool'}, > >> {'name': 'kvm-shadow-mem', 'type': 'int'}, > >> {'name': 'cap-dfp', 'type': 'bool'}, > >> {'name': 'cap-htm', 'type': 'bool'}, > >> {'name': 'cap-vsx', 'type': 'bool'}, > > ^^^^^^^ > > Here are the cap properties. Is it just Suraj's new tristate ones > > that aren't showing up? If so that's weird... are you sure you built > > with those patches included? > > I am sure I do not have them, my point was that QMP has it all if they are > present in qemu :)
Oh sorry, I wasn't paying attention. I thought that mail was from Andrea, not you. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature