intel_iommu: allow migration
commit8cdcf3c1e58d04b6811956d7608efeb66c42d719
authorPeter Xu <peterx@redhat.com>
Fri, 6 Jan 2017 04:06:13 +0000 (6 12:06 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 03:56:58 +0000 (10 05:56 +0200)
treed5f3dbb9e34d5d459259947639ddb8b46ec71056
parentf37bc03623cd22f3934264f50af926b9b63f6598
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>
hw/i386/intel_iommu.c
include/migration/vmstate.h