summaryrefslogtreecommitdiffstats
path: root/include/migration/vmstate.h
diff options
context:
space:
mode:
authorPeter Xu2017-01-06 05:06:13 +0100
committerMichael S. Tsirkin2017-01-10 04:56:58 +0100
commit8cdcf3c1e58d04b6811956d7608efeb66c42d719 (patch)
treed5f3dbb9e34d5d459259947639ddb8b46ec71056 /include/migration/vmstate.h
parentmigration: allow to prioritize save state entries (diff)
downloadqemu-8cdcf3c1e58d04b6811956d7608efeb66c42d719.tar.gz
qemu-8cdcf3c1e58d04b6811956d7608efeb66c42d719.tar.xz
qemu-8cdcf3c1e58d04b6811956d7608efeb66c42d719.zip
intel_iommu: allow migration
IOMMU needs to be migrated before all the PCI devices (in case there are devices that will request for address translation). So marking it with a priority higher than the default (which PCI devices and other belong). Migration framework handled the rest. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/migration/vmstate.h')
-rw-r--r--include/migration/vmstate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 1a228872fa..2125829a16 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -188,6 +188,7 @@ enum VMStateFlags {
typedef enum {
MIG_PRI_DEFAULT = 0,
+ MIG_PRI_IOMMU, /* Must happen before PCI devices */
MIG_PRI_MAX,
} MigrationPriority;