On Wed, May 15, 2024 at 10:07:31AM -0600, Peter Xu wrote: > On Wed, May 15, 2024 at 06:15:51PM +0400, marcandre.lur...@redhat.com wrote: > > 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) > > > > v3: > > - introduce machine_check_version() > > - drop the VMSD version, and use machine version field test > > Thanks for trying this out already. > > Last time I mentioned this may for the long term because I remember Dan and > Thomas were trying to work on some machine deprecation work, and maybe such > things may collapse with that work (and perhaps easier with that work > landed, too?). Just to copy them both here so we know where we are now, as > I didn't follow that discussion. IOW, patch 3/4 may need separate review > from outside migration..
You'll be refering to my series here: https://lists.nongnu.org/archive/html/qemu-devel/2024-05/msg00084.html Note that series very delibrately did *not* expose the version numbers as accessible fields to code. The version number info is only accessible within the machine type macros, and once the macros are expanded, the version digits remains hidden within the opaque machine type name strings, and/or method names. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|