aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/iommu.h
diff options
context:
space:
mode:
authorJean Guyader <jean.guyader@eu.citrix.com>2011-11-18 13:40:56 +0000
committerJean Guyader <jean.guyader@eu.citrix.com>2011-11-18 13:40:56 +0000
commitbf3292ca31ef4eedd6aa070b04321178a60e4b8f (patch)
tree0e3fcb77e180e29fbca5cafba0f1de7f34f4a05e /xen/include/xen/iommu.h
parentc312ccdeafa0ed2ec710f48f27d575c7bf88eafa (diff)
downloadxen-bf3292ca31ef4eedd6aa070b04321178a60e4b8f.tar.gz
xen-bf3292ca31ef4eedd6aa070b04321178a60e4b8f.tar.bz2
xen-bf3292ca31ef4eedd6aa070b04321178a60e4b8f.zip
iommu: Introduce iommu_flush and iommu_flush_all.
Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/iommu.h')
-rw-r--r--xen/include/xen/iommu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h
index a905a47d5b..82d4cc4605 100644
--- a/xen/include/xen/iommu.h
+++ b/xen/include/xen/iommu.h
@@ -143,6 +143,8 @@ struct iommu_ops {
void (*resume)(void);
void (*share_p2m)(struct domain *d);
void (*crash_shutdown)(void);
+ void (*iotlb_flush)(struct domain *d, unsigned long gfn, unsigned int page_count);
+ void (*iotlb_flush_all)(struct domain *d);
};
void iommu_update_ire_from_apic(unsigned int apic, unsigned int reg, unsigned int value);
@@ -159,4 +161,7 @@ void iommu_share_p2m_table(struct domain *d);
int iommu_do_domctl(struct xen_domctl *, XEN_GUEST_HANDLE(xen_domctl_t));
+void iommu_iotlb_flush(struct domain *d, unsigned long gfn, unsigned int page_count);
+void iommu_iotlb_flush_all(struct domain *d);
+
#endif /* _IOMMU_H_ */