aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/hvm
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-24 09:37:35 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-24 09:37:35 +0100
commit9df55200f749250f6befbef3d255f6b009e1f14d (patch)
treed1808a3fcac5e3b5882ef37fce348b4814c65586 /xen/include/xen/hvm
parentea3cb6b367f2a3d8f34392fe2a500ec3f4a68dc3 (diff)
downloadxen-9df55200f749250f6befbef3d255f6b009e1f14d.tar.gz
xen-9df55200f749250f6befbef3d255f6b009e1f14d.tar.bz2
xen-9df55200f749250f6befbef3d255f6b009e1f14d.zip
Enable IOMMU for PV guests
Introduce 'iommu_pv' boot parameter (default off). Added a need_iommu flag which is set if guest has PCI devices assigned. IOMMU page tables are populated with current guest memory when IOMMU is first enabled for the guest. Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
Diffstat (limited to 'xen/include/xen/hvm')
-rw-r--r--xen/include/xen/hvm/iommu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/hvm/iommu.h b/xen/include/xen/hvm/iommu.h
index 1577ad4255..333d8816c3 100644
--- a/xen/include/xen/hvm/iommu.h
+++ b/xen/include/xen/hvm/iommu.h
@@ -54,4 +54,7 @@ struct hvm_iommu {
struct iommu_ops *platform_ops;
};
+#define has_iommu_pdevs(domain) \
+ (!list_empty(&(domain->arch.hvm_domain.hvm_iommu.pdev_list)))
+
#endif /* __ASM_X86_HVM_IOMMU_H__ */