Re: [Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-20 Thread Juergen Gross
On 20/09/17 12:02, Jan Beulich wrote: On 20.09.17 at 11:44, wrote: >> On 20/09/17 11:22, Jan Beulich wrote: >> On 20.09.17 at 08:34, wrote: @@ -3381,75 +3425,21 @@ grant_table_create( struct domain *d) { struct grant_table *t; -unsigned int i, j; >

Re: [Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-20 Thread Jan Beulich
>>> On 20.09.17 at 11:44, wrote: > On 20/09/17 11:22, Jan Beulich wrote: > On 20.09.17 at 08:34, wrote: >>> @@ -3381,75 +3425,21 @@ grant_table_create( >>> struct domain *d) >>> { >>> struct grant_table *t; >>> -unsigned int i, j; >>> >>> if ( (t = xzalloc(struct grant_t

Re: [Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-20 Thread Juergen Gross
On 20/09/17 11:22, Jan Beulich wrote: On 20.09.17 at 08:34, wrote: >> @@ -3381,75 +3425,21 @@ grant_table_create( >> struct domain *d) >> { >> struct grant_table *t; >> -unsigned int i, j; >> >> if ( (t = xzalloc(struct grant_table)) == NULL ) >> -goto no_mem_0;

Re: [Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-20 Thread Jan Beulich
>>> On 20.09.17 at 08:34, wrote: > @@ -3381,75 +3425,21 @@ grant_table_create( > struct domain *d) > { > struct grant_table *t; > -unsigned int i, j; > > if ( (t = xzalloc(struct grant_table)) == NULL ) > -goto no_mem_0; > +return -ENOMEM; > > /* Simple

[Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-19 Thread Juergen Gross
Delay the allocation of the grant table sub structures in order to allow modifying parameters needed for sizing of these structures at a per domain basis. Allocate the structures from gnttab_setup_table() and the table frames only from grant_table_set_limits() (dom0: from grant_table_create()). Si