qemu-cr16/python/qemu/aqmp
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
..
__init__.py python/aqmp: rename AQMPError to QMPError 2022-01-21 16:01:31 -05:00
aqmp_tui.py python/aqmp: use absolute import statement 2022-01-10 18:22:33 -05:00
error.py python/aqmp: rename AQMPError to QMPError 2022-01-21 16:01:31 -05:00
events.py python/aqmp: rename AQMPError to QMPError 2022-01-21 16:01:31 -05:00
legacy.py python/aqmp: add socket bind step to legacy.py 2022-02-02 14:12:22 -05:00
message.py python/aqmp: add QMP Message format 2021-09-27 12:10:29 -04:00
models.py python/aqmp: Add dict conversion method to Greeting object 2021-10-12 12:22:10 -04:00
protocol.py python/aqmp: add socket bind step to legacy.py 2022-02-02 14:12:22 -05:00
py.typed
qmp_client.py python/aqmp: Fix negotiation with pre-"oob" QEMU 2022-02-02 14:12:22 -05:00
qmp_shell.py python: introduce qmp-shell-wrap convenience tool 2022-02-23 17:07:26 -05:00
util.py python/aqmp: add asyncio_run compatibility wrapper 2021-09-27 12:10:29 -04:00