From: Lan Tianyu Subject: Re: [PATCH 1/25] VIOMMU: Add vIOMMU helper functions to create, destroy and query capabilities Date: Tue, 4 Jul 2017 09:46:31 +0800 Message-ID: <006e7ca8-cdb9-53ff-3dfe-4d62e1455c43@intel.com> References: <1498715457-16565-1-git-send-email-tianyu.lan@intel.com> <1498715457-16565-2-git-send-email-tianyu.lan@intel.com> <20170630130511.folbjzj4xyt36wcx@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6787106861285113316==" Return-path: In-Reply-To: <20170630130511.folbjzj4xyt36wcx@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Wei Liu Cc: kevin.tian@intel.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, julien.grall@arm.com, jbeulich@suse.com, chao.gao@intel.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============6787106861285113316== Content-Type: multipart/alternative; boundary="------------898AA4F20764120F6566D110" This is a multi-part message in MIME format. --------------898AA4F20764120F6566D110 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Wei: Thanks for your review. On 2017年06月30日 21:05, Wei Liu wrote: > On Thu, Jun 29, 2017 at 01:50:33AM -0400, Lan Tianyu wrote: > [...] >> > diff --git a/xen/common/Kconfig b/xen/common/Kconfig >> > index dc8e876..8ba4f5a 100644 >> > --- a/xen/common/Kconfig >> > +++ b/xen/common/Kconfig >> > @@ -73,6 +73,18 @@ config TMEM >> > >> > If unsure, say Y. >> > >> > +config VIOMMU >> > + def_bool y >> > + depends on X86 > This depends on x86 but the code is in common/. What's the game plan / > expectation here? > The code is general but so far only x86 uses the vIOMMU framework and Julien hope it is disabled on ARM. So only build in vIOMMU codes on x86. -- Best regards Tianyu Lan --------------898AA4F20764120F6566D110 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hi Wei:
          Thanks for your review.

On 2017年06月30日 21:05, Wei Liu wrote:
On Thu, Jun 29, 2017 at 01:50:33AM -0400, Lan Tianyu wrote:
[...]
> diff --git a/xen/common/Kconfig b/xen/common/Kconfig
> index dc8e876..8ba4f5a 100644
> --- a/xen/common/Kconfig
> +++ b/xen/common/Kconfig
> @@ -73,6 +73,18 @@ config TMEM
>  
>  	  If unsure, say Y.
>  
> +config VIOMMU
> +	def_bool y
> +	depends on X86
This depends on x86 but the code is in common/. What's the game plan /
expectation here?

The code is general but so far only x86 uses the vIOMMU framework
and Julien hope it is disabled on ARM. So only build in vIOMMU codes on x86.
-- 
Best regards
Tianyu Lan
--------------898AA4F20764120F6566D110-- --===============6787106861285113316== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============6787106861285113316==--