> -----Original Message-----
> From: Roger Pau Monne <[email protected]>
> Sent: 13 September 2019 14:54
> To: Jan Beulich <[email protected]>
> Cc: Paul Durrant <[email protected]>; [email protected]; 
> Suravee Suthikulpanit
> <[email protected]>; Julien Grall <[email protected]>; Andrew 
> Cooper
> <[email protected]>; Anthony Perard <[email protected]>; 
> Christian Lindig
> <[email protected]>; George Dunlap <[email protected]>; Ian 
> Jackson
> <[email protected]>; Kevin Tian <[email protected]>; Stefano 
> Stabellini
> <[email protected]>; Konrad Rzeszutek Wilk <[email protected]>; 
> David Scott
> <[email protected]>; Tim (Xen.org) <[email protected]>; WeiLiu <[email protected]>
> Subject: Re: [PATCH v11.1 3/6] sysctl / libxl: report whether IOMMU/HAP page 
> table sharing is
> supported
> 
> On Fri, Sep 13, 2019 at 01:10:18PM +0200, Jan Beulich wrote:
> > --- a/tools/ocaml/libs/xc/xenctrl.mli
> > +++ b/tools/ocaml/libs/xc/xenctrl.mli
> > @@ -57,7 +57,6 @@ type domain_create_flag =
> >    | CDF_OOS_OFF
> >    | CDF_XS_DOMAIN
> >    | CDF_IOMMU
> > -
> 
> Stray deletion?

Yes, it is. It gets fixed up by a later patch though.

> 
> > --- a/xen/include/public/sysctl.h
> > +++ b/xen/include/public/sysctl.h
> > @@ -96,9 +96,13 @@ struct xen_sysctl_tbuf_op {
> >  /* The platform supports software paging. */
> >  #define _XEN_SYSCTL_PHYSCAP_shadow       4
> >  #define XEN_SYSCTL_PHYSCAP_shadow        (1u<<_XEN_SYSCTL_PHYSCAP_shadow)
> > +/* The platform supports sharing of HAP page tables with the IOMMU. */
> > +#define _XEN_SYSCTL_PHYSCAP_iommu_hap_pt_share 5
> > +#define XEN_SYSCTL_PHYSCAP_iommu_hap_pt_share  \
> > +    (1u << _XEN_SYSCTL_PHYSCAP_iommu_hap_pt_share)
> 
> I would drop the _hap part of this, since I don't think it adds much,
> it's not like the iommu page tables can be shared with anything else?
> 
> I don't have a strong opinion, and given that the code already makes
> extensive use of iommu_hap_pt_share I would be fine with that.
> 
> With the removed newline fixed (if applicable):
> 
> Reviewed-by: Roger Pau MonnĂ© <[email protected]>

Thanks,

  Paul

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to