From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC for-4.5 09/12] xen/passthrough: iommu: Introduce arch specific code Date: Wed, 19 Feb 2014 16:25:55 +0000 Message-ID: <5304DB13.3070605@linaro.org> References: <1391794991-5919-1-git-send-email-julien.grall@linaro.org> <1391794991-5919-10-git-send-email-julien.grall@linaro.org> <1392813617.29739.47.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WG9yD-0008TF-Ph for xen-devel@lists.xenproject.org; Wed, 19 Feb 2014 16:26:02 +0000 Received: by mail-ea0-f173.google.com with SMTP id d10so478854eaj.4 for ; Wed, 19 Feb 2014 08:25:59 -0800 (PST) In-Reply-To: <1392813617.29739.47.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Keir Fraser , Suravee Suthikulpanit , patches@linaro.org, Shane Wang , Joseph Cihula , tim@xen.org, stefano.stabellini@citrix.com, Jan Beulich , xen-devel@lists.xenproject.org, Gang Wei , Xiantao Zhang List-Id: xen-devel@lists.xenproject.org Hi Ian, On 02/19/2014 12:40 PM, Ian Campbell wrote: > On Fri, 2014-02-07 at 17:43 +0000, Julien Grall wrote: >> Currently the structure hvm_iommu (xen/include/xen/hvm/iommu.h) contains >> x86 specific fields. >> >> This patch creates: >> - arch_hvm_iommu structure which will contain architecture depend >> fields >> - arch_iommu_domain_{init,destroy} function to execute arch >> specific during domain creation/destruction >> >> Also move iommu_use_hap_pt and domain_hvm_iommu in asm-x86/iommu.h. >> >> Signed-off-by: Julien Grall >> Cc: Keir Fraser >> Cc: Jan Beulich >> Cc: Joseph Cihula >> Cc: Gang Wei >> Cc: Shane Wang >> Cc: Suravee Suthikulpanit >> Cc: Xiantao Zhang > > Mostly mechanical I guess? Yes. Mostly replace hd->field by hd->arch.field. > Acked-by: Ian Campbell Thanks, -- Julien Grall