aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/smmu-common.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2024-01-25 15:37:05 +0800
committerMichael S. Tsirkin <mst@redhat.com>2024-02-14 06:09:32 -0500
commit9a457383ce9d309d4679b079fafb51f0a2d949aa (patch)
treeaf669c8fb02d8dfb888e3a1e018d7f4011341e24 /hw/arm/smmu-common.c
parente8058c6d65252d920abf0bee027c455e8ffe41ff (diff)
downloadqemu-9a457383ce9d309d4679b079fafb51f0a2d949aa.zip
qemu-9a457383ce9d309d4679b079fafb51f0a2d949aa.tar.gz
qemu-9a457383ce9d309d4679b079fafb51f0a2d949aa.tar.bz2
virtio_iommu: Clear IOMMUPciBus pointer cache when system reset
s->iommu_pcibus_by_bus_num is a IOMMUPciBus pointer cache indexed by bus number, bus number may not always be a fixed value, i.e., guest reboot to different kernel which set bus number with different algorithm. This could lead to endpoint binding to wrong iommu MR in virtio_iommu_get_endpoint(), then vfio device setup wrong mapping from other device. Remove the memset in virtio_iommu_device_realize() to avoid redundancy with memset in system reset. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Message-Id: <20240125073706.339369-2-zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/arm/smmu-common.c')
0 files changed, 0 insertions, 0 deletions