aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/iommu.h
diff options
context:
space:
mode:
authorWei Wang <wei.wang2@amd.com>2011-04-18 17:24:21 +0100
committerWei Wang <wei.wang2@amd.com>2011-04-18 17:24:21 +0100
commit95966a869e10d91955c4c2ce15845cf8c5e05740 (patch)
treeec7c9e8cd515ca95ac51b5e2922c53b49792eed2 /xen/include/xen/iommu.h
parentffb56093e5a4dd989ded825fc01a26ee643a0364 (diff)
downloadxen-95966a869e10d91955c4c2ce15845cf8c5e05740.tar.gz
xen-95966a869e10d91955c4c2ce15845cf8c5e05740.tar.bz2
xen-95966a869e10d91955c4c2ce15845cf8c5e05740.zip
x86/mm: Add a generic interface for vtd and amd iommu p2m sharing.
Also introduce a new parameter (iommu=sharept) to enable this feature. Signed-off-by: Wei Wang <wei.wang2@amd.com> Acked-by: Tim Deegan <Tim.Deegan@citrix.com> Committed-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/include/xen/iommu.h')
-rw-r--r--xen/include/xen/iommu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h
index 5cea8032b7..2dee3f2982 100644
--- a/xen/include/xen/iommu.h
+++ b/xen/include/xen/iommu.h
@@ -132,6 +132,7 @@ struct iommu_ops {
unsigned int (*read_apic_from_ire)(unsigned int apic, unsigned int reg);
void (*suspend)(void);
void (*resume)(void);
+ void (*share_p2m)(struct domain *d);
};
void iommu_update_ire_from_apic(unsigned int apic, unsigned int reg, unsigned int value);
@@ -143,5 +144,6 @@ void iommu_suspend(void);
void iommu_resume(void);
void iommu_set_dom0_mapping(struct domain *d);
+void iommu_share_p2m_table(struct domain *d);
#endif /* _IOMMU_H_ */