[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 17/20] hw/pci-host/gpex: Mark device with no migratable fi
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH v2 17/20] hw/pci-host/gpex: Mark device with no migratable fields |
Date: |
Sun, 17 Jan 2021 20:24:43 +0100 |
TYPE_GPEX_HOST does not have internal state to migrate.
Its only interesting state is in the GPEXRootState, which
is a TYPE_GPEX_ROOT_DEVICE which migrates itself.
Explicit there is nothing to migrate by using the special
vmstate_qdev_no_state_to_migrate.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/pci-host/gpex.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c
index 2bdbe7b4561..2565dc27ae4 100644
--- a/hw/pci-host/gpex.c
+++ b/hw/pci-host/gpex.c
@@ -115,6 +115,7 @@ static void gpex_host_class_init(ObjectClass *klass, void
*data)
hc->root_bus_path = gpex_host_root_bus_path;
dc->realize = gpex_host_realize;
+ dc->vmsd = vmstate_qdev_no_state_to_migrate;
set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
dc->fw_name = "pci";
}
--
2.26.2
- [RFC PATCH v2 10/20] hw/usb/hcd-ohci: Mark the device with no migratable fields, (continued)
- [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é, 2021/01/17
- [RFC PATCH v2 17/20] hw/pci-host/gpex: Mark device with no migratable fields,
Philippe Mathieu-Daudé <=
- [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