]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-gpu: fix v2 migration
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 16 May 2024 08:40:22 +0000 (12:40 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 6 Jun 2024 11:19:03 +0000 (14:19 +0300)
commit3fe67740ca5555e993e811a1c1763f137ae1e52b
tree14a858dd9c7e9fadc90412f77818204f727679d5
parente44389b0ac88a241cc821f96060be394e37a05c0
virtio-gpu: fix v2 migration

Commit dfcf74fa ("virtio-gpu: fix scanout migration post-load") broke
forward/backward version migration. Versioning of nested VMSD structures
is not straightforward, as the wire format doesn't have nested
structures versions. Introduce x-scanout-vmstate-version and a field
test to save/load appropriately according to the machine version.

Fixes: dfcf74fa ("virtio-gpu: fix scanout migration post-load")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
[fixed long lines]
Signed-off-by: Fabiano Rosas <farosas@suse.de>
(cherry picked from commit 40a23ef643664b5c1021a9789f9d680b6294fb50)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/core/machine.c
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu.h