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

Re: [Xen-devel] [PATCH v6 1/4] xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk



>>> On 15.05.14 at 14:56, <julien.grall@xxxxxxxxxx> wrote:
> --- a/xen/include/xen/hvm/iommu.h
> +++ b/xen/include/xen/hvm/iommu.h
> @@ -34,6 +34,12 @@ struct hvm_iommu {
>      /* List of DT devices assigned to this domain */
>      struct list_head dt_devices;
>  #endif
> +
> +    /* Features supported by the IOMMU */
> +    unsigned long features;

This wants to be DECLARE_BITMAP(features, IOMMU_FEAT_count)
or some such, with ...

> --- a/xen/include/xen/iommu.h
> +++ b/xen/include/xen/iommu.h
> @@ -67,6 +67,14 @@ int iommu_map_page(struct domain *d, unsigned long gfn, 
> unsigned long mfn,
>                     unsigned int flags);
>  int iommu_unmap_page(struct domain *d, unsigned long gfn);
>  
> +enum iommu_feature
> +{
> +    IOMMU_FEAT_COHERENT_WALK,

... IOMMU_FEAT_count added here.

> +};

Jan


_______________________________________________
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®.