Re: [PATCH 0/2] python/qemu/machine: fix potential hang in QMP accept

2022-06-29 Thread Marc-André Lureau
Hi On Tue, Jun 28, 2022 at 9:08 PM John Snow wrote: > > On Tue, Jun 28, 2022 at 9:49 AM wrote: > > > > From: Marc-André Lureau > > > > Hi, > > > > As reported earlier by Richard Henderson ("virgl avocado hang" thread), > > avocado > > tests may hang when QEMU exits before the QMP connection is

Re: [PATCH 0/2] python/qemu/machine: fix potential hang in QMP accept

2022-06-28 Thread John Snow
On Tue, Jun 28, 2022 at 9:49 AM wrote: > > From: Marc-André Lureau > > Hi, > > As reported earlier by Richard Henderson ("virgl avocado hang" thread), > avocado > tests may hang when QEMU exits before the QMP connection is established. > > My proposal to fix the problem here is to do both accept

Re: [PATCH 0/2] python/qemu/machine: fix potential hang in QMP accept

2022-06-28 Thread Daniel P . Berrangé
On Tue, Jun 28, 2022 at 05:49:37PM +0400, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Hi, > > As reported earlier by Richard Henderson ("virgl avocado hang" thread), > avocado > tests may hang when QEMU exits before the QMP connection is established. > > My proposal to fix

[PATCH 0/2] python/qemu/machine: fix potential hang in QMP accept

2022-06-28 Thread marcandre . lureau
From: Marc-André Lureau Hi, As reported earlier by Richard Henderson ("virgl avocado hang" thread), avocado tests may hang when QEMU exits before the QMP connection is established. My proposal to fix the problem here is to do both accept() and wait() concurrently by turning some code async. Obv