qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] python/qemu/machine: fix potential hang in QMP accept
@ 2023-01-11  8:00 marcandre.lureau
  2023-01-11  8:00 ` [PATCH v3 1/3] python/qmp/protocol: add open_with_socket() marcandre.lureau
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: marcandre.lureau @ 2023-01-11  8:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: berrange, Beraldo Leal, John Snow, Cleber Rosa,
	Marc-André Lureau

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

As reported earlier by Richard Henderson ("virgl avocado hang" thread), avocado
tests may hang when QEMU exits before the QMP connection is established.

v3:
 - after merge in https://gitlab.com/qemu-project/python-qemu-qmp
 - resend as requested by John Snow

v2:
 - use a socketpair() for QMP (instead of async concurrent code from v1) as
   suggested by Daniel Berrange.
 - should not regress (hopefully)

Marc-André Lureau (3):
  python/qmp/protocol: add open_with_socket()
  python/qmp/legacy: make QEMUMonitorProtocol accept a socket
  python/qemu/machine: use socketpair() for QMP by default

 python/qemu/machine/machine.py | 24 ++++++++++++++++--------
 python/qemu/qmp/legacy.py      | 18 +++++++++++++++---
 python/qemu/qmp/protocol.py    | 25 ++++++++++++++++++++-----
 3 files changed, 51 insertions(+), 16 deletions(-)

-- 
2.39.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-03-20 10:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11  8:00 [PATCH v3 0/3] python/qemu/machine: fix potential hang in QMP accept marcandre.lureau
2023-01-11  8:00 ` [PATCH v3 1/3] python/qmp/protocol: add open_with_socket() marcandre.lureau
2023-01-11  8:01 ` [PATCH v3 2/3] python/qmp/legacy: make QEMUMonitorProtocol accept a socket marcandre.lureau
2023-01-11  8:01 ` [PATCH v3 3/3] python/qemu/machine: use socketpair() for QMP by default marcandre.lureau
2023-01-17 22:36   ` John Snow
2023-01-18  8:02     ` Marc-André Lureau
2023-01-24  0:22       ` John Snow
2023-03-17 19:36   ` Vladimir Sementsov-Ogievskiy
2023-03-20 10:56     ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).