Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-19 Thread Oleksandr
Hi, all. +struct iommu_fwspec { +    /* this device's IOMMU */ +    struct device *iommu_dev; +    /* IOMMU driver private data for this device */ +    void *iommu_priv; +    /* number of associated device IDs */ +    unsigned int num_ids; +    /* IDs which this device may present to the

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-19 Thread Julien Grall
On 19/09/2019 11:57, Oleksandr wrote: Hi, all. Hi, +struct iommu_fwspec { +    /* this device's IOMMU */ +    struct device *iommu_dev; +    /* IOMMU driver private data for this device */ +    void *iommu_priv; +    /* number of associated device IDs */ +    unsigned int num_ids; +   

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-19 Thread Oleksandr
Hi, all. +struct iommu_fwspec { +    /* this device's IOMMU */ +    struct device *iommu_dev; +    /* IOMMU driver private data for this device */ +    void *iommu_priv; +    /* number of associated device IDs */ +    unsigned int num_ids; +    /* IDs which this device may present to the

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-19 Thread Jan Beulich
On 19.09.2019 12:12, Julien Grall wrote: > Hi, > > On 17/09/2019 19:18, Oleksandr wrote: >> >> On 17.09.19 09:12, Jan Beulich wrote: >> >> Hi, Jan >> >>> On 16.09.2019 20:08, Oleksandr wrote: On 16.09.19 13:40, Jan Beulich wrote: >> +/* per-device IOMMU instance data */ >> +struct

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-19 Thread Julien Grall
Hi, On 17/09/2019 19:18, Oleksandr wrote: On 17.09.19 09:12, Jan Beulich wrote: Hi, Jan On 16.09.2019 20:08, Oleksandr wrote: On 16.09.19 13:40, Jan Beulich wrote: +/* per-device IOMMU instance data */ +struct iommu_fwspec { +    /* this device's IOMMU */ +    struct device *iommu_dev; +  

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-17 Thread Oleksandr
On 17.09.19 09:12, Jan Beulich wrote: Hi, Jan On 16.09.2019 20:08, Oleksandr wrote: On 16.09.19 13:40, Jan Beulich wrote: +/* per-device IOMMU instance data */ +struct iommu_fwspec { +/* this device's IOMMU */ +struct device *iommu_dev; +/* IOMMU driver private data for this

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-17 Thread Jan Beulich
On 16.09.2019 20:08, Oleksandr wrote: > On 16.09.19 13:40, Jan Beulich wrote: >>> +/* per-device IOMMU instance data */ >>> +struct iommu_fwspec { >>> +/* this device's IOMMU */ >>> +struct device *iommu_dev; >>> +/* IOMMU driver private data for this device */ >>> +void

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-16 Thread Oleksandr
On 16.09.19 13:40, Jan Beulich wrote: Hi, Jan + +/* per-device IOMMU instance data */ +struct iommu_fwspec { +/* this device's IOMMU */ +struct device *iommu_dev; +/* IOMMU driver private data for this device */ +void *iommu_priv; +/* number of associated device IDs */ +

Re: [Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-16 Thread Jan Beulich
On 13.09.2019 17:35, Oleksandr Tyshchenko wrote: > --- /dev/null > +++ b/xen/include/asm-arm/iommu_fwspec.h > @@ -0,0 +1,68 @@ > +/* > + * xen/include/asm-arm/iommu_fwspec.h > + * > + * Contains a common structure to hold the per-device firmware data and > + * declaration of functions used to

[Xen-devel] [PATCH V4 6/8] iommu/arm: Add lightweight iommu_fwspec support

2019-09-13 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko We need to have some abstract way to add new device to the IOMMU based on the generic IOMMU DT bindings [1] which can be used for both DT (right now) and ACPI (in future). For that reason we can borrow the idea used in Linux these days called "iommu_fwspec". Having