Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table

2021-09-06 Thread Jan Beulich
On 06.09.2021 16:05, Andrew Cooper wrote: > On 26/08/2021 11:09, Jan Beulich wrote: >> By default all guests are permitted to have up to 1024 maptrack frames, >> which on 64-bit means an 8k frame table. Yet except for driver domains >> guests normally don't make use of grant mappings. Defer allocat

Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table

2021-09-06 Thread Andrew Cooper
On 26/08/2021 11:09, Jan Beulich wrote: > By default all guests are permitted to have up to 1024 maptrack frames, > which on 64-bit means an 8k frame table. Yet except for driver domains > guests normally don't make use of grant mappings. Defer allocating the > table until a map track handle is fir

Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table

2021-09-06 Thread Jan Beulich
On 06.09.2021 15:33, Julien Grall wrote: > On 06/09/2021 14:29, Jan Beulich wrote: >> On 06.09.2021 15:13, Julien Grall wrote: >>> On 26/08/2021 11:09, Jan Beulich wrote: --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -633,6 +633,34 @@ get_maptrack_handle(

Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table

2021-09-06 Thread Julien Grall
Hi Jan, On 06/09/2021 14:29, Jan Beulich wrote: On 06.09.2021 15:13, Julien Grall wrote: On 26/08/2021 11:09, Jan Beulich wrote: --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -633,6 +633,34 @@ get_maptrack_handle( if ( likely(handle != INVALID_MAPTRACK_HANDLE) )

Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table

2021-09-06 Thread Jan Beulich
On 06.09.2021 15:13, Julien Grall wrote: > On 26/08/2021 11:09, Jan Beulich wrote: >> --- a/xen/common/grant_table.c >> +++ b/xen/common/grant_table.c >> @@ -633,6 +633,34 @@ get_maptrack_handle( >> if ( likely(handle != INVALID_MAPTRACK_HANDLE) ) >> return handle; >> >> +if

Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table

2021-09-06 Thread Julien Grall
Hi Jan, On 26/08/2021 11:09, Jan Beulich wrote: By default all guests are permitted to have up to 1024 maptrack frames, which on 64-bit means an 8k frame table. Yet except for driver domains guests normally don't make use of grant mappings. Defer allocating the table until a map track handle is

[PATCH 1/9] gnttab: defer allocation of maptrack frames table

2021-08-26 Thread Jan Beulich
By default all guests are permitted to have up to 1024 maptrack frames, which on 64-bit means an 8k frame table. Yet except for driver domains guests normally don't make use of grant mappings. Defer allocating the table until a map track handle is first requested. Signed-off-by: Jan Beulich --- I