[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] vmstate: add no_migrate flag to VMStateDescript
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 1/9] vmstate: add no_migrate flag to VMStateDescription |
Date: |
Wed, 20 Jul 2011 12:09:31 +0200 |
This allows to easily tag devices as non-migratable,
so any attempt to migrate a virtual machine with the
device in question active will make migration fail.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/hw.h | 1 +
savevm.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/hw.h b/hw/hw.h
index 9dd7096..df6ca65 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -324,6 +324,7 @@ typedef struct VMStateSubsection {
struct VMStateDescription {
const char *name;
+ int unmigratable;
int version_id;
int minimum_version_id;
int minimum_version_id_old;
diff --git a/savevm.c b/savevm.c
index 8139bc7..1c5abe2 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1234,6 +1234,7 @@ int vmstate_register_with_alias_id(DeviceState *dev, int
instance_id,
se->opaque = opaque;
se->vmsd = vmsd;
se->alias_id = alias_id;
+ se->no_migrate = vmsd->unmigratable;
if (dev && dev->parent_bus && dev->parent_bus->info->get_dev_path) {
char *id = dev->parent_bus->info->get_dev_path(dev);
--
1.7.1
- [Qemu-devel] [PULL] non-migratable devices, Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 2/9] vmstate: complain about devices without vmstate, Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 1/9] vmstate: add no_migrate flag to VMStateDescription,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 3/9] ahci doesn't support migration, Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 4/9] ehci doesn't support migration, Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 6/9] usb-wacom doesn't support migration, Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 5/9] usb storage: first migration support bits., Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 8/9] usb-net doesn't support migration, Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 7/9] usb-bt doesn't support migration, Gerd Hoffmann, 2011/07/20
- [Qemu-devel] [PATCH 9/9] usb-serial doesn't support migration, Gerd Hoffmann, 2011/07/20
- Re: [Qemu-devel] [PULL] non-migratable devices, Anthony Liguori, 2011/07/22