qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Fix "virtio-gpu: fix scanout migration post-load"
@ 2024-05-16  8:40 marcandre.lureau
  2024-05-16  8:40 ` [PATCH v4 1/3] migration: add "exists" info to load-state-field trace marcandre.lureau
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marcandre.lureau @ 2024-05-16  8:40 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, Paolo Bonzini, Fiona Ebner, Fabiano Rosas, Yanan Wang,
	Marcel Apfelbaum, Peter Maydell, Gerd Hoffmann, Peter Xu,
	Eduardo Habkost, Richard Henderson, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, =?unknown-8bit?q?Marc-Andr=C3=A9?= Lureau

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

Hi,

The aforementioned patch breaks virtio-gpu device migrations for versions
pre-9.0/9.0, both forwards and backwards. Versioning of `VMS_STRUCT` is more
complex than it may initially appear, as evidenced in the problematic commit
dfcf74fa68c ("virtio-gpu: fix scanout migration post-load").

v2:
 - use a manual version field test (instead of the more complex struct variant)

v3:
 - introduce machine_check_version()
 - drop the VMSD version, and use machine version field test

v4:
 - drop machine_check_version() approach
 - property renamed to x-scanout-vmstate-version

Marc-André Lureau (3):
  migration: add "exists" info to load-state-field trace
  migration: fix a typo
  virtio-gpu: fix v2 migration

 include/hw/virtio/virtio-gpu.h |  1 +
 hw/core/machine.c              |  1 +
 hw/display/virtio-gpu.c        | 24 ++++++++++++++++--------
 migration/vmstate.c            |  7 ++++---
 migration/trace-events         |  2 +-
 5 files changed, 23 insertions(+), 12 deletions(-)

-- 
2.41.0.28.gd7d8841f67



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

end of thread, other threads:[~2024-05-22 22:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16  8:40 [PATCH v4 0/3] Fix "virtio-gpu: fix scanout migration post-load" marcandre.lureau
2024-05-16  8:40 ` [PATCH v4 1/3] migration: add "exists" info to load-state-field trace marcandre.lureau
2024-05-16  8:40 ` [PATCH v4 2/3] migration: fix a typo marcandre.lureau
2024-05-16  8:40 ` [PATCH v4 3/3] virtio-gpu: fix v2 migration marcandre.lureau
2024-05-16  9:31 ` [PATCH v4 0/3] Fix "virtio-gpu: fix scanout migration post-load" Fiona Ebner
2024-05-16 15:25 ` Peter Xu
2024-05-22 22:02 ` Fabiano Rosas

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