> -----Original Message-----
> From: Jan Beulich <jbeul...@suse.com>
> Sent: 13 September 2019 11:05
> To: Paul Durrant <paul.durr...@citrix.com>
> Cc: xen-devel@lists.xenproject.org; Julien Grall <julien.gr...@arm.com>; 
> Andrew Cooper
> <andrew.coop...@citrix.com>; Roger Pau Monne <roger....@citrix.com>; 
> Volodymyr Babchuk
> <volodymyr_babc...@epam.com>; George Dunlap <george.dun...@citrix.com>; Ian 
> Jackson
> <ian.jack...@citrix.com>; Stefano Stabellini <sstabell...@kernel.org>; Konrad 
> Rzeszutek Wilk
> <konrad.w...@oracle.com>; Tim (Xen.org) <t...@xen.org>; Wei Liu <w...@xen.org>
> Subject: Re: [PATCH v10 5/6] iommu: tidy up iommu_use_hap_pt() and 
> need_iommu_pt_sync() macros
> 
> On 13.09.2019 11:47, Paul Durrant wrote:
> > --- a/xen/include/xen/iommu.h
> > +++ b/xen/include/xen/iommu.h
> > @@ -56,8 +56,10 @@ extern bool_t iommu_enable, iommu_enabled;
> >  extern bool_t force_iommu, iommu_verbose, iommu_igfx;
> >  extern bool_t iommu_snoop, iommu_qinval, iommu_intremap, iommu_intpost;
> >
> > -#ifdef CONFIG_HVM
> > +#if defined(CONFIG_HVM)
> >  extern bool iommu_hap_pt_share;
> > +#elif defined(CONFIG_IOMMU_FORCE_PT_SHARE)
> > +#define iommu_hap_pt_share true
> >  #else
> >  #define iommu_hap_pt_share false
> >  #endif
> 
> The ordering is wrong here - Arm unconditionally defines HVM, and
> hence it now also setting IOMMU_FORCE_PT_SHARE won't be accounted
> for this way.

Ah yes, good point.

> I'd be happy to adjust this on commit, but I'm afraid
> I'm still unhappy about patch 3 (but I guess at this point I'll
> better propose a replacement than ask you for going through another
> round).
> 

That would be helpful.

  Paul

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to