Hi Fiona On Mon, May 13, 2024 at 4:56 PM Fiona Ebner <f.eb...@proxmox.com> wrote: > > Hi, > > Am 13.05.24 um 09:19 schrieb marcandre.lur...@redhat.com: > > From: Marc-André Lureau <marcandre.lur...@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) > > > > Unfortunately, when creating a snapshot with machine type pc-i440fx-9.0 > and trying to load it afterwards (both times with patches on top of > current master), it'll fail with: > > > qemu-system-x86_64: virtio-gpu-scanouts: incoming version_id 2 is too new > > for local version_id 1 > > qemu-system-x86_64: Missing section footer for 0000:00:02.0/virtio-gpu > > qemu-system-x86_64: Error -22 while loading VM state > > Is there a bump to virtio-gpu-scanouts' version_id missing? >
Indeed, it needs: diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 5de90bb62f..3a88eb5e3a 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1201,7 +1201,7 @@ static const VMStateDescription vmstate_virtio_gpu_scanout = { static const VMStateDescription vmstate_virtio_gpu_scanouts = { .name = "virtio-gpu-scanouts", - .version_id = 1, + .version_id = 2,