[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 13/13] migration: Use vmstate_register_any() for vmware_vga
From: |
Juan Quintela |
Subject: |
[PATCH v2 13/13] migration: Use vmstate_register_any() for vmware_vga |
Date: |
Fri, 20 Oct 2023 11:07:31 +0200 |
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>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
hw/display/vmware_vga.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index 09591fbd39..7490d43881 100644
--- a/hw/display/vmware_vga.c
+++ b/hw/display/vmware_vga.c
@@ -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_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;
}
--
2.41.0
- [PATCH v2 08/13] migration: vmstate_register() check that instance_id is valid, (continued)
- [PATCH v2 08/13] migration: vmstate_register() check that instance_id is valid, Juan Quintela, 2023/10/20
- [PATCH v2 07/13] migration: Hack to maintain backwards compatibility for ppc, Juan Quintela, 2023/10/20
- [PATCH v2 10/13] migration: Improve example and documentation of vmstate_register(), Juan Quintela, 2023/10/20
- [PATCH v2 09/13] migration: Check in savevm_state_handler_insert for dups, Juan Quintela, 2023/10/20
- [PATCH v2 11/13] migration: Use vmstate_register_any() for audio, Juan Quintela, 2023/10/20
- [PATCH v2 12/13] migration: Use vmstate_register_any() for eeprom93xx, Juan Quintela, 2023/10/20
- [PATCH v2 13/13] migration: Use vmstate_register_any() for vmware_vga,
Juan Quintela <=