intel-iommu: update iq_dw during post load
commit147a372e7580dc5cf4310d159db2f374e38ac30e
authorJason Wang <jasowang@redhat.com>
Thu, 17 Mar 2022 08:05:22 +0000 (17 16:05 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 May 2022 08:38:40 +0000 (16 04:38 -0400)
tree8729775f6456876e6bc46d068f7be77908b1a17f
parentceb058955ab529937498acfd3c9259a2a64b2d4e
intel-iommu: update iq_dw during post load

We need to update iq_dw according to the DMA_IRQ_REG during post
load. Otherwise we may get wrong IOTLB invalidation descriptor after
migration.

Fixes: fb43cf739e ("intel_iommu: scalable mode emulation")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220317080522.14621-2-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
hw/i386/intel_iommu.c