[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 23/25] console: make screendump async
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH v2 23/25] console: make screendump async |
Date: |
Mon, 23 Jan 2017 12:35:03 +0000 |
Hi
On Mon, Jan 23, 2017 at 4:04 PM Gerd Hoffmann <address@hidden> wrote:
> Hi,
> >
> > If you only ref, you could have the image being modified while it is
> > being saved asynchronously, this could result in tearing artefacts,
> > no?
>
> Yes, but you have that problem _anyway_. screendump qmp command can run
> in parallel to guest vcpu, so it can race with guest display updates
> today. Assuming they happen as simple framebuffer writes and therefore
> don't involve vmexit + grabbing big qemu lock.
>
Agreed, fwiw, I implemented a coroutine-based ppm_save in the qapi-async
branch:
https://github.com/elmarco/qemu/commit/6f45a28ce737eab1d0ce4639f7b015a51a43674c
btw, is it supported to reenter the main_loop in hmp_screendump_sync()
(Paolo)?
(the alternative is probably to block hmp until the async command is
finished. This would eventually be interesting if more qmp commands used
from hmp are converted to be async)
--
Marc-André Lureau
- [Qemu-devel] [PATCH v2 17/25] qtest: add qtest-timeout, (continued)
- [Qemu-devel] [PATCH v2 17/25] qtest: add qtest-timeout, Marc-André Lureau, 2017/01/18
- [Qemu-devel] [PATCH v2 19/25] tests: add tests for async and non-async clients, Marc-André Lureau, 2017/01/18
- [Qemu-devel] [PATCH v2 18/25] qtest: add qtest_init_qmp_caps(), Marc-André Lureau, 2017/01/18
- [Qemu-devel] [PATCH v2 20/25] qapi: improve 'screendump' documentation, Marc-André Lureau, 2017/01/18
- [Qemu-devel] [PATCH v2 21/25] console: graphic_hw_update return true if async, Marc-André Lureau, 2017/01/18
- [Qemu-devel] [PATCH v2 22/25] console: add graphic_hw_update_done(), Marc-André Lureau, 2017/01/18
- [Qemu-devel] [PATCH v2 23/25] console: make screendump async, Marc-André Lureau, 2017/01/18
[Qemu-devel] [PATCH v2 24/25] qtest: add /qemu-qmp/screendump test, Marc-André Lureau, 2017/01/18
[Qemu-devel] [PATCH v2 25/25] qmp: move json-message-parser and check to QmpClient, Marc-André Lureau, 2017/01/18
Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, no-reply, 2017/01/18
Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, Stefan Hajnoczi, 2017/01/23
- Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, Marc-André Lureau, 2017/01/23
- Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, Stefan Hajnoczi, 2017/01/24
- Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, Marc-André Lureau, 2017/01/24
- Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, Stefan Hajnoczi, 2017/01/30
- Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, Marc-André Lureau, 2017/01/30
- Re: [Qemu-devel] [PATCH v2 00/25] qmp: add async command type, Gerd Hoffmann, 2017/01/31