Skip to content

monitor: Completion support for various commands

Hani Benhabiles qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 6 repliesIn review
  2. v17 patches 9 repliesSuperseded

Changes in v2 from the cover letter

* Splitting patch 1/7 to 1/17, 2/17 and 3/17.
* Changed command_completion's first argument from Monitor to ReadLineState.
* Added new commands completions (10/17 to 17/17)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17monitor: Fix drive_del id argument type completion.hmp-commands.hx+1 -10 replies
2/17monitor: Add command_completion callback to mon_cmd_t.hmp-commands.hx hmp.h monitor.c+18 -61 reply
3/17monitor: Add device_add and device_del completion.hmp-commands.hx hmp.h monitor.c+25 -131 reply
4/17monitor: Add chardev-remove id argument completion.hmp-commands.hx hmp.h monitor.c+25 -01 reply
5/17monitor: Add chardev-add backend argument completion.hmp-commands.hx hmp.h monitor.c+25 -00 replies
6/17monitor: Add cpu index argument completion.hmp-commands.hx hmp.h monitor.c+26 -00 replies
7/17monitor: Add set_link arguments completion.hmp-commands.hx hmp.h monitor.c +1 more+37 -11 reply
8/17monitor: Add netdev_add type argument completion.hmp-commands.hx hmp.h monitor.c+21 -11 reply
9/17monitor: Add netdev_del id argument completion.hmp-commands.hx hmp.h monitor.c+28 -00 replies
10/17monitor: Add ringbuf_write and ringbuf_read argument completion.hmp-commands.hx hmp.h include/sysemu/char.h +2 more+45 -30 replies
11/17monitor: Add watchdog_action argument completion.hmp-commands.hx hmp.h monitor.c+17 -00 replies
12/17monitor: Add migrate_set_capability completion.hmp-commands.hx hmp.h monitor.c+24 -00 replies
13/17monitor: Add host_net_add device argument completion.hmp-commands.hx hmp.h monitor.c+17 -10 replies
14/17readline: Make completion strings always unique.util/readline.c+6 -00 replies
15/17monitor: Add host_net_remove arguments completion.hmp-commands.hx hmp.h monitor.c+41 -00 replies
16/17monitor: Add mouse_set index argument completion.hmp-commands.hx hmp.h monitor.c+24 -00 replies
17/17monitor: Add delvm and loadvm argument completion.hmp-commands.hx hmp.h monitor.c+52 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/17] monitor: Completion support for various commands

This patch series adds a new callback to mon_cmd_t which will make adding completion support for more commands cleaner.

It then adds full or partial arguments completion for multiple hmp commands.

Changes since v1:
* Splitting patch 1/7 to 1/17, 2/17 and 3/17.
* Changed command_completion's first argument from Monitor to ReadLineState.
* Added new commands completions (10/17 to 17/17)

Hani Benhabiles (17):
monitor: Fix drive_del id argument type completion.
monitor: Add command_completion callback to mon_cmd_t.
monitor: Add device_add and device_del completion.
monitor: Add chardev-remove id argument completion.
monitor: Add chardev-add backend argument completion.
monitor: Add cpu index argument completion.
monitor: Add set_link arguments completion.
monitor: Add netdev_add type argument completion.
monitor: Add netdev_del id argument completion.
monitor: Add ringbuf_write and ringbuf_read argument completion.
monitor: Add watchdog_action argument completion.
monitor: Add migrate_set_capability completion.
monitor: Add host_net_add device argument completion.
readline: Make completion strings always unique.
monitor: Add host_net_remove arguments completion.
monitor: Add mouse_set index argument completion.
monitor: Add delvm and loadvm argument completion.

 hmp-commands.hx       |  25 +++-
 hmp.h                 |  23 +++
 include/sysemu/char.h |   3 +-
 monitor.c             | 397 +++++++++++++++++++++++++++++++++++++++++++++++---
 net/net.c             |   2 +-
 qemu-char.c           |   2 +-
 util/readline.c       |   6 +
 7 files changed, 432 insertions(+), 26 deletions(-)
Signature · 1 line
1.8.3.2