intel-iommu: correctly check passthrough during translation
commit5178d78f4b61cad647d628f52922970cdfe119b6
authorJason Wang <jasowang@redhat.com>
Wed, 5 Jan 2022 04:19:42 +0000 (5 12:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 8 Jan 2022 00:30:13 +0000 (7 19:30 -0500)
tree591978ca9b4b6a7176764f968ffa4cdff0304f31
parent60f1f77cabe42995fe8dff2bf8e874846339b5c0
intel-iommu: correctly check passthrough during translation

When scalable mode is enabled, the passthrough more is not determined
by the context entry but PASID entry, so switch to use the logic of
vtd_dev_pt_enabled() to determine the passthrough mode in
vtd_do_iommu_translate().

Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220105041945.13459-2-jasowang@redhat.com>
Reviewed-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