Il 15/05/2014 18:38, Andreas Färber ha scritto:
On that matter, our help output does not seem to indicate the name of
the corresponding -object parameter, my unverified guess is that that is
called "qom-type".

OTOH there's no reason to suppress "qom-type" or "id" for -machine, as
implied when I suggested using a separate function.

"id" should be suppressed for backwards compatibility for "-machine id=foo".

"qom-type" is not needed indeed. But it is so ugly that I would suggest doing a backwards-incompatible change to the name the default argument of -object, from "qom-type" to "type". Libvirt doesn't use "qom-type", and "type" nicely matches the QOM property name:

  $ qemu-system-x86_64 -qmp unix:/tmp/m1,server,nowait -S \
       -object rng-random,id=foo &
  $ ./qom-get -s /tmp/m1 /objects/foo.type
  rng-random

Paolo

Reply via email to