[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 5/6] iommu: tidy up iommu_us_hap_pt() and need_iommu_pt_sync() macros

Hi Paul,

On 14/08/2019 11:13, Paul Durrant wrote:
--- a/xen/include/xen/iommu.h
+++ b/xen/include/xen/iommu.h
@@ -268,6 +268,13 @@ struct domain_iommu {
   #define iommu_set_feature(d, f)   set_bit(f, dom_iommu(d)->features)
   #define iommu_clear_feature(d, f) clear_bit(f, dom_iommu(d)->features)

+/* Are we using the domain P2M table as its IOMMU pagetable? */
+#define iommu_use_hap_pt(d) \
+    (hap_enabled(d) && is_iommu_enabled(d) && iommu_hap_pt_share)

Does this build for Arm, seeing that there's no hap_enabled()
definition there? Or have I missed its addition earlier in this

It moved to common code sched.h in an earlier patch.

I went through the series and didn't find where hap_enabled() is defined for Arm in this series. Do you mind pointing the exact patch?


Julien Grall

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.