qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: dongwon.kim@intel.com
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH 2/2] virtio-gpu: first surface update with blob scanout after resumed
Date: Wed, 6 Mar 2024 12:42:45 +0400	[thread overview]
Message-ID: <CAJ+F1C+1bS5OOL31dm+4Ms5zpJetrOpQX-qoc5ihb9yjCS3ddQ@mail.gmail.com> (raw)
In-Reply-To: <20240305222252.3232608-2-dongwon.kim@intel.com>

Hi Dongwon Kim

On Wed, Mar 6, 2024 at 2:24 AM <dongwon.kim@intel.com> wrote:
>
> From: Dongwon Kim <dongwon.kim@intel.com>
>
> The guest surface needs to be updated with a blob scanout after resumed
> from saved vm state if blob is enabled.
>
> Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
> Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
> Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
> ---
>  hw/display/virtio-gpu.c | 21 ++++++++++++++-------
>  1 file changed, 14 insertions(+), 7 deletions(-)
>


The way you send patches to the ML confuses patchew, and they are not
properly triaged or tested.
(https://patchew.org/search?q=project%3AQEMU+from%3Adongwon.kim%40intel.com)

Please send a series of your pending patches, with a new version. It's
confusing with the various mails otherwise. And it's then easier to
deal with regular patch series that are tracked by patchew.

thanks

> diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
> index 1c1ee230b3..01bc4f9565 100644
> --- a/hw/display/virtio-gpu.c
> +++ b/hw/display/virtio-gpu.c
> @@ -1422,16 +1422,23 @@ static int virtio_gpu_post_load(void *opaque, int version_id)
>          if (!res) {
>              return -EINVAL;
>          }
> -        scanout->ds = qemu_create_displaysurface_pixman(res->image);
> -        if (!scanout->ds) {
> -            return -EINVAL;
> -        }
> +
> +        if (res->blob_size) {
> +            assert(g->dmabuf.primary[i] != NULL);
> +            g->dmabuf.primary[i]->buf.fd = res->dmabuf_fd;
> +            dpy_gl_scanout_dmabuf(scanout->con, &g->dmabuf.primary[i]->buf);
> +        } else {
> +            scanout->ds = qemu_create_displaysurface_pixman(res->image);
> +            if (!scanout->ds) {
> +                return -EINVAL;
> +            }
>  #ifdef WIN32
> -        qemu_displaysurface_win32_set_handle(scanout->ds, res->handle, 0);
> +            qemu_displaysurface_win32_set_handle(scanout->ds, res->handle, 0);
>  #endif
> +            dpy_gfx_replace_surface(scanout->con, scanout->ds);
> +            dpy_gfx_update_full(scanout->con);
> +        }
>
> -        dpy_gfx_replace_surface(scanout->con, scanout->ds);
> -        dpy_gfx_update_full(scanout->con);
>          if (scanout->cursor.resource_id) {
>              update_cursor(g, &scanout->cursor);
>          }
> --
> 2.34.1
>


-- 
Marc-André Lureau


  reply	other threads:[~2024-03-06  8:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-04 18:40 [PATCH] ui/gtk: flush display pipeline before saving vmstate when blob=true Dongwon Kim
2023-12-05  7:14 ` Marc-André Lureau
2023-12-05 22:05   ` Kim, Dongwon
2023-12-06  7:02     ` Marc-André Lureau
2023-12-13 20:24 ` [PATCH 1/3] " Dongwon Kim
2023-12-13 20:24   ` [PATCH 2/3] ui/gtk: unblock pipeline only if fence hasn't been signaled yet Dongwon Kim
2023-12-15  8:36     ` Marc-André Lureau
2023-12-15 12:49       ` BALATON Zoltan
2023-12-28 18:40       ` Kim, Dongwon
2023-12-13 20:24   ` [PATCH 3/3] virtio-gpu: first surface update with blob scanout after resumed Dongwon Kim
2024-03-05 12:56     ` Marc-André Lureau
2024-03-05 22:22       ` [PATCH 1/2] ui/gtk: flush display pipeline before saving vmstate when blob=true dongwon.kim
2024-03-05 22:22         ` [PATCH 2/2] virtio-gpu: first surface update with blob scanout after resumed dongwon.kim
2024-03-06  8:42           ` Marc-André Lureau [this message]
2023-12-15  8:33   ` [PATCH 1/3] ui/gtk: flush display pipeline before saving vmstate when blob=true Marc-André Lureau
2023-12-29  7:28     ` Kasireddy, Vivek
2023-12-29 19:22       ` Kim, Dongwon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ+F1C+1bS5OOL31dm+4Ms5zpJetrOpQX-qoc5ihb9yjCS3ddQ@mail.gmail.com \
    --to=marcandre.lureau@gmail.com \
    --cc=dongwon.kim@intel.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).