[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] python/qemu/machine: fix potential hang in QMP accept
From: |
John Snow |
Subject: |
Re: [PATCH 0/2] python/qemu/machine: fix potential hang in QMP accept |
Date: |
Tue, 28 Jun 2022 13:08:15 -0400 |
On Tue, Jun 28, 2022 at 9:49 AM <marcandre.lureau@redhat.com> wrote:
>
> 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.
>
> My proposal to fix the problem here is to do both accept() and wait()
> concurrently by turning some code async. Obviously, there is much larger
> work to be done to turn more code into async and avoid _sync() wrappers, but
> I do not intend to tackle that.
>
> Please comment/review
>
This has been on my list, it's been a problem for a while. If this
series doesn't regress anything, I'm happy to take it. It'd be nice to
get a proper "idiomatic" asyncio Machine class, but that can wait. I
just got back from a vacation trip, please harass me in a few days if
I haven't cleared this off my to-do list.
Thanks,
--js
> Marc-André Lureau (2):
> python/qemu/machine: replace subprocess.Popen with asyncio
> python/qemu/machine: accept QMP connection asynchronously
>
> python/qemu/machine/machine.py | 58 ++++++++++++++++++++++++----------
> python/qemu/qmp/legacy.py | 10 ++++++
> 2 files changed, 51 insertions(+), 17 deletions(-)
>
> --
> 2.37.0.rc0
>