From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [Patch RFC 06/13] vt-d: Introduce a new per-domain flag - qi_flag. Date: Wed, 16 Sep 2015 10:34:49 +0100 Message-ID: <55F937B9.1060307@citrix.com> References: <1442409847-65383-1-git-send-email-quan.xu@intel.com> <1442409847-65383-7-git-send-email-quan.xu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1442409847-65383-7-git-send-email-quan.xu@intel.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: Quan Xu , andrew.cooper3@citrix.com, eddie.dong@intel.com, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, jbeulich@suse.com, jun.nakajima@intel.com, keir@xen.org, kevin.tian@intel.com, tim@xen.org, yang.z.zhang@intel.com, george.dunlap@eu.citrix.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Quan, On 16/09/2015 14:24, Quan Xu wrote: > diff --git a/xen/include/xen/hvm/iommu.h b/xen/include/xen/hvm/iommu.h > index 28e7fc3..e838905 100644 > --- a/xen/include/xen/hvm/iommu.h > +++ b/xen/include/xen/hvm/iommu.h > @@ -51,6 +51,7 @@ struct hvm_iommu { > > /* IOMMU Queued Invalidation(QI) */ > struct qi_talbe talbe; > + bool_t qi_flag; > > /* Features supported by the IOMMU */ > DECLARE_BITMAP(features, IOMMU_FEAT_count); > @@ -63,5 +64,7 @@ struct hvm_iommu { > (d->arch.hvm_domain.hvm_iommu.talbe.qi_table_status_data) > #define qi_table_pollslot(d) \ > (d->arch.hvm_domain.hvm_iommu.talbe.qi_table_poll_slot) > +#define QI_FLUSHING(d) \ > + (d->arch.hvm_domain.hvm_iommu.qi_flag) I guess the new field and this new macro could be moved in asm-x86/hvm/iommu.h too. > > #endif /* __XEN_HVM_IOMMU_H__ */ > Regards, -- Julien Grall