[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 17/20] console: make screendump asynchronous
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH v4 17/20] console: make screendump asynchronous |
Date: |
Wed, 10 Apr 2019 10:48:30 +0200 |
User-agent: |
NeoMutt/20180716 |
> +static void qmp_screendump_finish(QemuConsole *con, struct qmp_screendump
> *dump)
> +{
> + Error *err = NULL;
> + DisplaySurface *surface;
> + Monitor *prev_mon = cur_mon;
Why this is needed?
> + /*
> + * FIXME: async save with coroutine? it would have to copy or
> + * lock the surface.
> + */
> + ppm_save(dump->filename, surface, &err);
DisplaySurface is just a thin layer above pixman images these days.
Pixman images are reference counted, so you can
pixman_image_ref(surface->image) to make sure it doesn't disappear
underneath you, then pass the pixman image to ppm_save.
cheers,
Gerd
- [Qemu-devel] [PATCH v4 09/20] qmp: simplify qmp_return_error(), (continued)
- [Qemu-devel] [PATCH v4 09/20] qmp: simplify qmp_return_error(), Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 11/20] QmpSession: return orderly, Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 12/20] qmp: introduce asynchronous command type, Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 13/20] scripts: learn 'async' qapi commands, Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 14/20] qmp: add qmp_return_is_cancelled(), Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 15/20] monitor: add qmp_return_get_monitor(), Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 16/20] console: add graphic_hw_update_done(), Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 10/20] QmpSession: keep a queue of pending commands, Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 17/20] console: make screendump asynchronous, Marc-André Lureau, 2019/04/09
- Re: [Qemu-devel] [PATCH v4 17/20] console: make screendump asynchronous,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH v4 18/20] monitor: start making qmp_human_monitor_command() asynchronous, Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 19/20] monitor: teach HMP about asynchronous commands, Marc-André Lureau, 2019/04/09
- [Qemu-devel] [PATCH v4 20/20] hmp: call the asynchronous QMP screendump to fix outdated/glitches, Marc-André Lureau, 2019/04/09
- Re: [Qemu-devel] [PATCH v4 00/20] monitor: add asynchronous command type, no-reply, 2019/04/09
- Re: [Qemu-devel] [PATCH v4 00/20] monitor: add asynchronous command type, no-reply, 2019/04/09