qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio-gpu: fix blob scanout post-load
@ 2024-01-15 15:48 marcandre.lureau
  2024-01-15 15:48 ` [PATCH 1/2] virtio-gpu: remove needless condition marcandre.lureau
  2024-01-15 15:48 ` [PATCH 2/2] virtio-gpu: fix scanout migration post-load marcandre.lureau
  0 siblings, 2 replies; 6+ messages in thread
From: marcandre.lureau @ 2024-01-15 15:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: peterx, Gerd Hoffmann, Michael S. Tsirkin, Marc-André Lureau

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

The current post-loading code for scanout has a FIXME: it doesn't take the
resource region/rect into account. But there is more, when adding blob migration
support in commit f66767f75c9, I didn't realize that blob resources could be
used for scanouts. This situationn leads to a crash during post-load, as they
don't have an associated res->image.

virtio_gpu_do_set_scanout() handle all cases, but requires the associated
virtio_gpu_framebuffer, which is currently not saved during migration.

Add a v2 of "virtio-gpu-one-scanout" with the framebuffer fields, so we can
restore blob scanouts, as well as fixing the existing FIXME.

Marc-André Lureau (2):
  virtio-gpu: remove needless condition
  virtio-gpu: fix scanout migration post-load

 include/hw/virtio/virtio-gpu.h |  1 +
 hw/display/virtio-gpu.c        | 61 ++++++++++++++++++++++++----------
 2 files changed, 45 insertions(+), 17 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-17 17:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-15 15:48 [PATCH 0/2] virtio-gpu: fix blob scanout post-load marcandre.lureau
2024-01-15 15:48 ` [PATCH 1/2] virtio-gpu: remove needless condition marcandre.lureau
2024-01-15 15:48 ` [PATCH 2/2] virtio-gpu: fix scanout migration post-load marcandre.lureau
2024-01-16 11:16   ` Sebastian Ott
2024-01-17 11:13     ` Marc-André Lureau
2024-01-17 17:00       ` Sebastian Ott

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).