[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Patch RFC 06/13] vt-d: Introduce a new per-domain flag - qi_flag.



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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.