Re: [Xen-devel] [PATCH RFC 09/10] passthrough/intel: put some code under CONFIG_HVM

2018-04-23 Thread Jan Beulich
>>> On 21.02.18 at 22:47, wrote: > @@ -1873,6 +1876,7 @@ int iommu_pte_flush(struct domain *d, u64 gfn, u64 *pte, > return rc; > } > > +#ifdef CONFIG_HVM > static int __init vtd_ept_page_compatible(struct iommu *iommu) > { > u64 ept_cap, vtd_cap = iommu->cap; >

[Xen-devel] [PATCH RFC 09/10] passthrough/intel: put some code under CONFIG_HVM

2018-02-21 Thread Wei Liu
The code which references code under arch/x86/hvm/ is surrounded by CONFIG_HVM now. The basic idea is that in !CONFIG_HVM && CONFIG_PV case we still want to retain the host side IOMMU code so that PV guests can use it if necessary. Signed-off-by: Wei Liu --- Cc: Kevin Tian