diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-12 14:29:35 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:20:48 -0600 |
commit | eb6e8ea5c38b47a3c6cf27f4780abd92bc079caa (patch) | |
tree | 02cb9341c0ab3aefe309dd441b2a7c85829b6d97 /qmp-commands.hx | |
parent | b4b12c6247d89b94e197891fbadb2699fd469ed6 (diff) |
qom: qom_{get, set} monitor commands (v2)
This allows clients to read and write device model properties through QMP. QAPI
doesn't support Visitor types yet and these commands are special in that they
don't work with fixed types.
I've added a documentation stub to qapi-schema.json so we can keep consistency
there.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r-- | qmp-commands.hx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx index c1f0718eff..7e3f4b9a59 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -2015,3 +2015,15 @@ EQMP .args_type = "path:s", .mhandler.cmd_new = qmp_marshal_input_qom_list, }, + + { + .name = "qom-set", + .args_type = "path:s,property:s,opts:O", + .mhandler.cmd_new = qmp_qom_set, + }, + + { + .name = "qom-get", + .args_type = "path:s,property:s", + .mhandler.cmd_new = qmp_qom_get, + }, |