summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZenghui Yu2020-10-19 11:15:08 +0200
committerPeter Maydell2020-10-27 12:10:44 +0100
commita55aab618163f9ffd8b5cbf737d4e57875264510 (patch)
tree88e8f102aeade388e01a11e0e7b099288f49f534
parenthw/gpio: Add GPIO model for Nuvoton NPCM7xx (diff)
downloadqemu-a55aab618163f9ffd8b5cbf737d4e57875264510.tar.gz
qemu-a55aab618163f9ffd8b5cbf737d4e57875264510.tar.xz
qemu-a55aab618163f9ffd8b5cbf737d4e57875264510.zip
hw/arm/smmuv3: Set the restoration priority of the vSMMUv3 explicitly
Ensure the vSMMUv3 will be restored before all PCIe devices so that DMA translation can work properly during migration. Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Message-id: 20201019091508.197-1-yuzenghui@huawei.com Acked-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/arm/smmuv3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c
index 0122700e72..2017ba7a5a 100644
--- a/hw/arm/smmuv3.c
+++ b/hw/arm/smmuv3.c
@@ -1440,6 +1440,7 @@ static const VMStateDescription vmstate_smmuv3 = {
.name = "smmuv3",
.version_id = 1,
.minimum_version_id = 1,
+ .priority = MIG_PRI_IOMMU,
.fields = (VMStateField[]) {
VMSTATE_UINT32(features, SMMUv3State),
VMSTATE_UINT8(sid_size, SMMUv3State),