On Wed, 2015-03-11 at 11:23 +0000, Julien Grall wrote:
> The commit 7978429 "iommu: fix usage of shared EPT/IOMMU page tables on
> PVH guests" breaks the hypervisor compilation on ARM.
> 
> This is because the macro hap_enabled is not defined on ARM.
> 
> On x86, the P2M can only be shared when hap is enabled and the user
> didn't deny it (via the command line). Those checks are done by
> iommu_use_hap_pt().
> 
> On ARM, the macro iommu_use_hap_pt() is also defined. So move the
> if ( iommu_use_hap_pt(d) ) from the IOMMU drivers up to
> iommu_share_p2m_table.
> 
> Signed-off-by: Julien Grall <julien.gr...@linaro.org>
> Cc: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com>
> Cc: Aravind Gopalakrishnan <aravind.gopalakrish...@amd.com>
> Cc: Jan Beulich <jbeul...@suse.com>
> Cc: Yang Zhang <yang.z.zh...@intel.com>
> Cc: Kevin Tian <kevin.t...@intel.com>
> Cc: Roger Pau Monné <roger....@citrix.com>

Reviewed-by: Ian Campbell <ian.campb...@citrix.com>

Since this is breaking the arm build (as I suppose osstest will tell us
shortly) it would be good to get this into the tree ASAP.



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to