|
@@ -1255,31 +1255,6 @@ void unregister_savevm(DeviceState *dev, const char *idstr, void *opaque)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/* mark a device as not to be migrated, that is the device should be
|
|
|
- unplugged before migration */
|
|
|
-void register_device_unmigratable(DeviceState *dev, const char *idstr,
|
|
|
- void *opaque)
|
|
|
-{
|
|
|
- SaveStateEntry *se;
|
|
|
- char id[256] = "";
|
|
|
-
|
|
|
- if (dev && dev->parent_bus && dev->parent_bus->info->get_dev_path) {
|
|
|
- char *path = dev->parent_bus->info->get_dev_path(dev);
|
|
|
- if (path) {
|
|
|
- pstrcpy(id, sizeof(id), path);
|
|
|
- pstrcat(id, sizeof(id), "/");
|
|
|
- g_free(path);
|
|
|
- }
|
|
|
- }
|
|
|
- pstrcat(id, sizeof(id), idstr);
|
|
|
-
|
|
|
- QTAILQ_FOREACH(se, &savevm_handlers, entry) {
|
|
|
- if (strcmp(se->idstr, id) == 0 && se->opaque == opaque) {
|
|
|
- se->no_migrate = 1;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
int vmstate_register_with_alias_id(DeviceState *dev, int instance_id,
|
|
|
const VMStateDescription *vmsd,
|
|
|
void *opaque, int alias_id,
|