summaryrefslogtreecommitdiff
path: root/include/linux/iova.h
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2014-02-19 14:07:37 +0800
committerJoerg Roedel <joro@8bytes.org>2014-03-04 17:51:06 +0100
commit75f05569d0e51f6332a291c82abbeb7c8262e32d (patch)
tree24eeca4b270e4f0c3ca857c1993b109e685f1588 /include/linux/iova.h
parent2e45528930388658603ea24d49cf52867b928d3e (diff)
downloadlwn-75f05569d0e51f6332a291c82abbeb7c8262e32d.tar.gz
lwn-75f05569d0e51f6332a291c82abbeb7c8262e32d.zip
iommu/vt-d: Update IOMMU state when memory hotplug happens
If static identity domain is created, IOMMU driver needs to update si_domain page table when memory hotplug event happens. Otherwise PCI device DMA operations can't access the hot-added memory regions. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'include/linux/iova.h')
-rw-r--r--include/linux/iova.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iova.h b/include/linux/iova.h
index 76a0759e88ec..3277f4711349 100644
--- a/include/linux/iova.h
+++ b/include/linux/iova.h
@@ -47,5 +47,7 @@ void copy_reserved_iova(struct iova_domain *from, struct iova_domain *to);
void init_iova_domain(struct iova_domain *iovad, unsigned long pfn_32bit);
struct iova *find_iova(struct iova_domain *iovad, unsigned long pfn);
void put_iova_domain(struct iova_domain *iovad);
+struct iova *split_and_remove_iova(struct iova_domain *iovad,
+ struct iova *iova, unsigned long pfn_lo, unsigned long pfn_hi);
#endif