python, iotests: replace qmp with aqmp
commit76cd358671e6b8e7c435ec65b1c44200254514a9
authorJohn Snow <jsnow@redhat.com>
Tue, 26 Oct 2021 17:56:12 +0000 (26 13:56 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 1 Nov 2021 15:54:59 +0000 (1 11:54 -0400)
treeda386d95c9eecacc1c2f42cc6d5cc428959ad66c
parentf122be6093f5fc61fe5784e342781fab07f5defc
python, iotests: replace qmp with aqmp

Swap out the synchronous QEMUMonitorProtocol from qemu.qmp with the sync
wrapper from qemu.aqmp instead.

Add an escape hatch in the form of the environment variable
QEMU_PYTHON_LEGACY_QMP which allows you to cajole QEMUMachine into using
the old implementation, proving that both implementations work
concurrently.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-id: 20211026175612.4127598-9-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine/machine.py