hw/arm/smmuv3: Set the restoration priority of the vSMMUv3 explicitly
RFC PATCH 1/1 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 <[email protected]>
---
not sure if anything would actually go wrong...
hw/arm/smmuv3.c | 1 + 1 file changed, 1 insertion(+)
hw/arm/smmuv3.c +1 -0
@@ -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),
Signature · 1 line
2.19.1
Hi Zenghui,
Quoted 2 lines · Zenghui Yu
Ensure the vSMMUv3 will be restored before all PCIe devices so that DMA translation can work properly during migration.
Sorry I missed this patch. good catch!
Acked-by Eric Auger <[email protected]>
Thanks
Eric
Quoted 22 lines
Signed-off-by Zenghui Yu <[email protected]>---
not sure if anything would actually go wrong...
hw/arm/smmuv3.c | 1 + 1 file changed, 1 insertion(+)hw/arm/smmuv3.c +1
-0@@ -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),
Peter Maydell
AppliedQuoted 10 lines · Auger Eric
Hi Zenghui,
Quoted 2 lines · Zenghui Yu
Ensure the vSMMUv3 will be restored before all PCIe devices so that DMA translation can work properly during migration.
Sorry I missed this patch. good catch!
Acked-by Eric Auger <[email protected]>
Applied to target-arm.next, thanks.
-- PMM