mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
b4b12c6247
commit
eb6e8ea5c3
4 changed files with 140 additions and 0 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue