migration: Use vmstate_register_any() for vmware_vga
I have no idea if we can have more than one vmware_vga device, so play it safe. Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231020090731.28701-14-quintela@redhat.com>
This commit is contained in:
		@@ -1264,7 +1264,7 @@ static void vmsvga_init(DeviceState *dev, struct vmsvga_state_s *s,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    vga_common_init(&s->vga, OBJECT(dev), &error_fatal);
 | 
					    vga_common_init(&s->vga, OBJECT(dev), &error_fatal);
 | 
				
			||||||
    vga_init(&s->vga, OBJECT(dev), address_space, io, true);
 | 
					    vga_init(&s->vga, OBJECT(dev), address_space, io, true);
 | 
				
			||||||
    vmstate_register(NULL, 0, &vmstate_vga_common, &s->vga);
 | 
					    vmstate_register_any(NULL, &vmstate_vga_common, &s->vga);
 | 
				
			||||||
    s->new_depth = 32;
 | 
					    s->new_depth = 32;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user