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;
>
>>> 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
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;
>>> 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
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