OSDN Git Service

python/qemu/machine: use socketpair() for QMP by default
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 11 Jan 2023 08:01:01 +0000 (12:01 +0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 24 Jan 2023 18:37:13 +0000 (13:37 -0500)
commitbd4c0ef409140bd1be393407c04005ac077d4574
tree013be1b0b48eb4920c3bf713ded9bbcc142e734a
parent603a3bad4b9a95b524dc8d6a41b1be4d5c5cacdf
python/qemu/machine: use socketpair() for QMP by default

When no monitor address is given, establish the QMP communication through
a socketpair() (API is also supported on Windows since Python 3.5)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20230111080101.969151-4-marcandre.lureau@redhat.com
[Resolved conflicts, fixed typing error. --js]
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine/machine.py