[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 16/20] hw/sparc64/sun4u: Mark devices with no migratable f
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH v2 16/20] hw/sparc64/sun4u: Mark devices with no migratable fields |
Date: |
Sun, 17 Jan 2021 20:24:42 +0100 |
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index 0fa13a73302..fdf0aa875be 100644
--- a/hw/sparc64/sun4u.c
+++ b/hw/sparc64/sun4u.c
@@ -84,12 +84,15 @@ struct hwdef {
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;
};
#define TYPE_EBUS "ebus"
@@ -386,6 +389,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);
}
--
2.26.2
- [RFC PATCH v2 09/20] hw/cpu/cluster: Mark the device with no migratable fields, (continued)
- [RFC PATCH v2 09/20] hw/cpu/cluster: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 08/20] hw/cpu/a9mpcore: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 10/20] hw/usb/hcd-ohci: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 11/20] hw/intc/arm_gicv2m: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 12/20] hw/misc/armsse-cpuid: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 13/20] hw/misc/iotkit-sysinfo: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 14/20] hw/misc/unimp: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 15/20] hw/nubus/mac-nubus-bridge: Mark the device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 16/20] hw/sparc64/sun4u: Mark devices with no migratable fields,
Philippe Mathieu-Daudé <=
- [RFC PATCH v2 17/20] hw/pci-host/gpex: Mark device with no migratable fields, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 18/20] hw/core/qdev: Display warning for devices missing migration state, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 19/20] stubs/vmstate: Add VMSTATE_END_OF_LIST to vmstate_user_mode_cpu_dummy, Philippe Mathieu-Daudé, 2021/01/17
- [RFC PATCH v2 20/20] migration/vmstate: Simplify vmstate for user-mode CPU, Philippe Mathieu-Daudé, 2021/01/17