hw/display/cirrus_vga_isa: Disable global_vmstate by default for new machines

In the long run, we would like to get rid of the code that allows to
register migration state globally, so set global_vmstate to false when
using the isa-cirrus-vga device with new machines, and only enable it
for older machines to avoid breaking the migration there.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260326154850.301609-1-thuth@redhat.com>
This commit is contained in:
Thomas Huth
2026-03-26 16:48:50 +01:00
parent d7189d4009
commit af4eea83d2
2 changed files with 3 additions and 1 deletions

View File

@@ -40,6 +40,7 @@
GlobalProperty hw_compat_10_2[] = {
{ "scsi-block", "migrate-pr", "off" },
{ "isa-cirrus-vga", "global-vmstate", "true" },
};
const size_t hw_compat_10_2_len = G_N_ELEMENTS(hw_compat_10_2);

View File

@@ -56,7 +56,6 @@ static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp)
s->vram_size_mb);
return;
}
s->global_vmstate = true;
if (!vga_common_init(s, OBJECT(dev), errp)) {
return;
}
@@ -74,6 +73,8 @@ static const Property isa_cirrus_vga_properties[] = {
cirrus_vga.vga.vram_size_mb, 4),
DEFINE_PROP_BOOL("blitter", struct ISACirrusVGAState,
cirrus_vga.enable_blitter, true),
DEFINE_PROP_BOOL("global-vmstate", struct ISACirrusVGAState,
cirrus_vga.vga.global_vmstate, false),
};
static void isa_cirrus_vga_class_init(ObjectClass *klass, const void *data)