Peter Krempa
289aa4bc5b
virsh: Add QMP command wrapping for 'qemu-monitor-command'
...
Issuing simple QMP commands is pain as they need to be wrapped by the
JSON wrapper:
{ "execute": "COMMAND" }
and optionally also:
{ "execute": "COMMAND", "arguments":...}
For simple commands without arguments we can add syntax sugar to virsh
which allows simple usage of QMP and additionally prepares also for
passing through of the 'arguments' section:
virsh qemu-monitor-command $VM query-status
is equivalent to
virsh qemu-monitor-command $VM '{"execute":"query-status"}'
and
virsh qemu-monitor-command $VM query-named-block-nodes '{"flat":true}'
or
virsh qemu-monitor-command $VM query-named-block-nodes '"flat":true'
is equivalent to
virsh qemu-monitor-command $VM '{"execute":"query-named-block-nodes", "arguments":{"flat":true}}'
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2021-10-18 16:04:17 +02:00
..
2020-08-03 09:27:06 +02:00
2021-10-12 16:46:45 +02:00
2021-08-10 16:33:07 +02:00
2020-08-03 09:27:06 +02:00
2021-08-11 09:16:36 +02:00
2020-08-03 09:27:06 +02:00
2021-10-01 11:05:12 +02:00
2020-10-05 10:28:37 +01:00
2021-10-18 16:04:17 +02:00
2021-10-15 09:40:55 +02:00
2020-09-01 21:58:46 +02:00
2021-03-15 17:31:35 +01:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-03-15 17:31:35 +01:00
2021-03-15 17:31:35 +01:00
2021-03-15 17:31:57 +01:00
2021-03-23 17:55:06 +01:00
2020-09-01 21:58:46 +02:00
2021-03-15 17:32:27 +01:00
2020-09-01 21:58:46 +02:00
2021-02-10 13:37:12 +01:00
2021-06-09 14:48:40 +01:00
2021-04-13 17:00:38 +02:00
2020-08-03 09:27:09 +02:00
2021-03-16 10:49:33 +01:00
2020-09-01 21:58:46 +02:00
2021-06-15 12:14:52 +02:00
2020-09-01 21:58:46 +02:00
2021-06-07 08:05:59 -06:00
2020-06-03 13:38:33 +02:00
2020-04-08 09:32:35 +02:00
2020-11-16 14:04:04 +01:00
2021-04-09 13:48:54 +02:00
2021-06-04 10:56:06 +01:00
2020-10-12 15:26:00 +04:00
2021-06-04 10:56:06 +01:00
2020-10-05 10:28:37 +01:00
2020-11-09 15:26:02 +00:00
2021-03-12 10:52:41 +01:00
2021-09-16 09:54:29 -05:00
2020-09-01 21:58:46 +02:00
2021-05-03 12:14:44 +02:00
2020-09-01 21:58:46 +02:00
2021-03-24 14:24:55 +03:00
2020-09-01 21:58:46 +02:00
2021-03-12 10:52:51 +01:00
2020-11-04 17:21:45 +01:00
2020-10-05 10:28:37 +01:00
2020-12-08 15:12:34 +01:00
2021-09-15 17:00:19 +02:00
2020-12-04 16:15:03 +01:00
2021-10-15 09:40:55 +02:00
2021-07-21 13:30:30 +02:00
2021-01-26 14:29:48 +01:00
2021-04-01 13:32:25 +02:00
2021-05-27 15:38:28 +02:00
2020-11-04 17:21:45 +01:00
2021-01-08 15:27:00 +01:00
2021-05-21 14:00:43 +02:00
2020-12-02 16:15:43 +01:00
2021-01-05 13:54:11 +01:00
2020-08-03 18:41:11 +02:00
2020-10-02 14:10:44 +02:00
2020-10-02 14:10:40 +02:00
2020-10-05 10:28:37 +01:00
2021-02-03 16:33:18 +00:00
2020-09-01 21:58:46 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2021-06-07 17:04:14 +01:00
2021-06-07 17:04:14 +01:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-11-16 14:04:04 +01:00
2020-09-01 21:58:46 +02:00
2021-08-10 16:33:07 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2021-01-05 13:40:25 +01:00
2021-09-15 08:37:40 +02:00
2020-06-11 12:03:41 +02:00
2020-07-10 16:07:02 +02:00
2020-09-01 21:58:46 +02:00
2021-07-02 15:05:15 +01:00
2021-04-15 15:42:21 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2021-04-12 16:09:41 +02:00
2020-11-12 15:01:42 +01:00
2020-04-20 14:06:25 +01:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-08-04 17:06:33 +01:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-07-10 16:07:02 +02:00
2020-05-11 13:55:27 +02:00
2020-10-09 09:12:39 +02:00
2020-08-04 17:06:33 +01:00
2020-06-03 13:38:33 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2021-02-16 08:35:09 +01:00
2021-02-05 16:02:22 +01:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00