Re: [PATCH for-5.0 v11 05/20] virtio-iommu: Endpoint and domains structs and helpers

2019-12-23 Thread Auger Eric
Hi Jean, On 12/20/19 6:00 PM, Jean-Philippe Brucker wrote: > On Thu, Dec 19, 2019 at 07:31:08PM +0100, Auger Eric wrote: >> Hi Jean, >> >> On 12/10/19 5:37 PM, Jean-Philippe Brucker wrote: >>> On Fri, Nov 22, 2019 at 07:29:28PM +0100, Eric Auger wrote: +typedef struct viommu_domain { +

Re: [PATCH for-5.0 v11 05/20] virtio-iommu: Endpoint and domains structs and helpers

2019-12-20 Thread Jean-Philippe Brucker
On Thu, Dec 19, 2019 at 07:31:08PM +0100, Auger Eric wrote: > Hi Jean, > > On 12/10/19 5:37 PM, Jean-Philippe Brucker wrote: > > On Fri, Nov 22, 2019 at 07:29:28PM +0100, Eric Auger wrote: > >> +typedef struct viommu_domain { > >> +uint32_t id; > >> +GTree *mappings; > >> +QLIST_HEAD(,

Re: [PATCH for-5.0 v11 05/20] virtio-iommu: Endpoint and domains structs and helpers

2019-12-19 Thread Auger Eric
Hi Jean, On 12/10/19 5:37 PM, Jean-Philippe Brucker wrote: > On Fri, Nov 22, 2019 at 07:29:28PM +0100, Eric Auger wrote: >> +typedef struct viommu_domain { >> +uint32_t id; >> +GTree *mappings; >> +QLIST_HEAD(, viommu_endpoint) endpoint_list; >> +} viommu_domain; >> + >> +typedef struc

Re: [PATCH for-5.0 v11 05/20] virtio-iommu: Endpoint and domains structs and helpers

2019-12-10 Thread Jean-Philippe Brucker
On Fri, Nov 22, 2019 at 07:29:28PM +0100, Eric Auger wrote: > +typedef struct viommu_domain { > +uint32_t id; > +GTree *mappings; > +QLIST_HEAD(, viommu_endpoint) endpoint_list; > +} viommu_domain; > + > +typedef struct viommu_endpoint { > +uint32_t id; > +viommu_domain *domain;

[PATCH for-5.0 v11 05/20] virtio-iommu: Endpoint and domains structs and helpers

2019-11-22 Thread Eric Auger
This patch introduce domain and endpoint internal datatypes. Both are stored in RB trees. The domain owns a list of endpoints attached to it. Helpers to get/put end points and domains are introduced. get() helpers will become static in subsequent patches. Signed-off-by: Eric Auger --- v10 -> v