summaryrefslogtreecommitdiff
path: root/drivers/iommu/s390-iommu.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-05-04 05:34:53 +0300
committerJoerg Roedel <jroedel@suse.de>2018-05-15 17:31:41 +0300
commit87684fd997a6f12486bb0a638c7dba3130afb376 (patch)
tree7901692aa08cba54a1c44d4c7328fb39785c7565 /drivers/iommu/s390-iommu.c
parenteed91a0b85e55bcda8849d191604537b9933594f (diff)
downloadlinux-87684fd997a6f12486bb0a638c7dba3130afb376.tar.xz
iommu/vt-d: Fix iotlb psi missing for mappings
When caching mode is enabled for IOMMU, we should send explicit IOTLB PSIs even for newly created mappings. However these events are missing for all intel_iommu_map() callers, e.g., iommu_map(). One direct user is the vfio-pci driver. To make sure we'll send the PSIs always when necessary, this patch firstly introduced domain_mapping() helper for page mappings, then fixed the problem by generalizing the explicit map IOTLB PSI logic into that new helper. With that, we let iommu_domain_identity_map() to use the simplified version to avoid sending the notifications, while for all the rest of cases we send the notifications always. For VM case, we send the PSIs to all the backend IOMMUs for the domain. This patch allows the nested device assignment to work with QEMU (assign device firstly to L1 guest, then assign it again to L2 guest). Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/s390-iommu.c')
0 files changed, 0 insertions, 0 deletions