From: Ian Campbell Subject: Re: [PATCH v3 07/13] xen/passthrough: iommu: Introduce arch specific code Date: Tue, 18 Mar 2014 16:27:32 +0000 Message-ID: <1395160052.11824.7.camel@kazak.uk.xensource.com> References: <1394552999-14171-1-git-send-email-julien.grall@linaro.org> <1394552999-14171-8-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPwrw-0004zm-Qr for xen-devel@lists.xenproject.org; Tue, 18 Mar 2014 16:28:01 +0000 In-Reply-To: <1394552999-14171-8-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Keir Fraser , Suravee Suthikulpanit , 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 On Tue, 2014-03-11 at 15:49 +0000, Julien Grall wrote: > +struct arch_hvm_iommu > +{ > + u64 pgd_maddr; /* io page directory machine address */ > + int agaw; /* adjusted guest address width, 0 is level 2 30-bit */ > + u64 iommu_bitmap; /* bitmap of iommu(s) that the domain uses */ Blank line here for clarity? > + /* amd iommu support */ > + int paging_mode; > + struct page_info *root_table; > + struct guest_iommu *g_iommu; > + I don't think the following are amd specific, in their original home they were up with pgd_maddr and co any way. If they are to stay here perhaps a new /* heading */ comment would help? > + struct list_head g2m_ioport_list; /* guest to machine ioport mapping */ > + struct list_head mapped_rmrrs; > + spinlock_t mapping_lock; /* io page table lock */ > +}; > + Ian.