qemu-e2k/scripts/qmp
Daniel P. Berrangé 439125293c python: introduce qmp-shell-wrap convenience tool
With the current 'qmp-shell' tool developers must first spawn QEMU with
a suitable -qmp arg and then spawn qmp-shell in a separate terminal
pointing to the right socket.

With 'qmp-shell-wrap' developers can ignore QMP sockets entirely and
just pass the QEMU command and arguments they want. The program will
listen on a UNIX socket and tell QEMU to connect QMP to that.

For example, this:

 # qmp-shell-wrap -- qemu-system-x86_64 -display none

Is roughly equivalent of running:

 # qemu-system-x86_64 -display none -qmp qmp-shell-1234 &
 # qmp-shell qmp-shell-1234

Except that 'qmp-shell-wrap' switches the socket peers around so that
it is the UNIX socket server and QEMU is the socket client. This makes
QEMU reliably go away when qmp-shell-wrap exits, closing the server
socket.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20220128161157.36261-2-berrange@redhat.com
[Edited for rebase. --js]
Signed-off-by: John Snow <jsnow@redhat.com>
2022-02-23 17:07:26 -05:00
..
qemu-ga-client python: move qmp utilities to python/qemu/utils 2022-01-21 16:01:31 -05:00
qmp scripts/qmp: delete 'qmp' script 2020-10-27 11:11:06 +01:00
qmp-shell python: move qmp-shell under the AQMP package 2022-01-21 16:01:31 -05:00
qmp-shell-wrap python: introduce qmp-shell-wrap convenience tool 2022-02-23 17:07:26 -05:00
qom-fuse python: move qmp utilities to python/qemu/utils 2022-01-21 16:01:31 -05:00
qom-get python: move qmp utilities to python/qemu/utils 2022-01-21 16:01:31 -05:00
qom-list python: move qmp utilities to python/qemu/utils 2022-01-21 16:01:31 -05:00
qom-set python: move qmp utilities to python/qemu/utils 2022-01-21 16:01:31 -05:00
qom-tree python: move qmp utilities to python/qemu/utils 2022-01-21 16:01:31 -05:00