[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 17/18] hw/sparc64/sun4u: Mark devices with no migratable fields
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 17/18] hw/sparc64/sun4u: Mark devices with no migratable fields |
Date: |
Fri, 3 Jul 2020 22:19:10 +0200 |
These devices don't have fields to migrate. Be explicit
by using vmstate_qdev_no_state_to_migrate.
Add a more descriptive comment to keep a clear separation
between static property vs runtime changeable.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/sparc64/sun4u.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index 9c8655cffc..2653893625 100644
--- a/hw/sparc64/sun4u.c
+++ b/hw/sparc64/sun4u.c
@@ -82,12 +82,15 @@ struct hwdef {
typedef struct EbusState {
/*< private >*/
PCIDevice parent_obj;
+ /*< public >*/
ISABus *isa_bus;
qemu_irq isa_bus_irqs[ISA_NUM_IRQS];
- uint64_t console_serial_base;
MemoryRegion bar0;
MemoryRegion bar1;
+
+ /* Properties */
+ uint64_t console_serial_base;
} EbusState;
#define TYPE_EBUS "ebus"
@@ -384,6 +387,7 @@ static void ebus_class_init(ObjectClass *klass, void *data)
k->device_id = PCI_DEVICE_ID_SUN_EBUS;
k->revision = 0x01;
k->class_id = PCI_CLASS_BRIDGE_OTHER;
+ dc->vmsd = vmstate_qdev_no_state_to_migrate;
device_class_set_props(dc, ebus_properties);
}
@@ -476,6 +480,7 @@ static void prom_class_init(ObjectClass *klass, void *data)
device_class_set_props(dc, prom_properties);
dc->realize = prom_realize;
+ dc->vmsd = vmstate_qdev_no_state_to_migrate;
}
static const TypeInfo prom_info = {
--
2.21.3
- [PATCH 09/18] hw/cpu/a9mpcore: Mark the device with no migratable fields, (continued)
- [PATCH 09/18] hw/cpu/a9mpcore: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 10/18] hw/cpu/cluster: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 11/18] hw/usb/hcd-ohci: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 12/18] hw/intc/arm_gicv2m: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 15/18] hw/misc/unimp: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 13/18] hw/misc/armsse-cpuid: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 14/18] hw/misc/iotkit-sysinfo: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 16/18] hw/nubus/mac-nubus-bridge: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2020/07/03
- [RFC PATCH 18/18] hw/core/qdev: Display warning for devices missing migration state, Philippe Mathieu-Daudé, 2020/07/03
- [PATCH 17/18] hw/sparc64/sun4u: Mark devices with no migratable fields,
Philippe Mathieu-Daudé <=
- Re: [PATCH 00/18] hw: Mark the device with no migratable fields, no-reply, 2020/07/03
- Re: [PATCH 00/18] hw: Mark the device with no migratable fields, Peter Maydell, 2020/07/09