OSDN Git Service

hmp: Simplify qom-set
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 20 May 2020 15:11:08 +0000 (16:11 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 1 Jun 2020 17:44:27 +0000 (18:44 +0100)
commit7d2ef6dcc1cf87e7506487051eda010b479f5d0e
tree00f776cb810344717c49cc69ed9de812bd50311f
parent89cf4fe34f4afa671a2ab5d9430021ea12106274
hmp: Simplify qom-set

Simplify qom_set by making it use qmp_qom_set and the JSON parser.

(qemu) qom-get /machine smm
"auto"
(qemu) qom-set /machine smm "auto"

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20200520151108.160598-3-dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  With 's'->'S' type change suggested by Paolo and Markus
hmp-commands.hx
qom/qom-hmp-cmds.c