Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-25 Thread Jan Beulich
>>> On 25.08.17 at 14:03, wrote: > On 25/08/17 13:58, Jan Beulich wrote: > On 25.08.17 at 13:40, wrote: >>> In the Linux kernel I would then: >>> >>> - Re-add grant v2 support >>> - Add boot parameter for selecting grant v1 or v2 >>> - Use grant v2 if

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-25 Thread Juergen Gross
On 25/08/17 13:58, Jan Beulich wrote: On 25.08.17 at 13:40, wrote: >> So what about the following idea: >> >> - Set the default max number of grant frames to 32 on "small" hosts >> (max. physical memory address below 16TB) and to 64 on "large" >> hosts > > This looks

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-25 Thread Jan Beulich
>>> On 25.08.17 at 13:40, wrote: > So what about the following idea: > > - Set the default max number of grant frames to 32 on "small" hosts > (max. physical memory address below 16TB) and to 64 on "large" > hosts This looks reasonable to me as long as it's properly

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-25 Thread Juergen Gross
On 24/08/17 17:20, Jan Beulich wrote: On 24.08.17 at 17:13, wrote: >> On 24/08/17 17:04, Jan Beulich wrote: >> On 24.08.17 at 16:48, wrote: How would the guest know whether using v2 grants is no disadvantage? >>> >>> As said - it's always going to

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-24 Thread Jan Beulich
>>> On 24.08.17 at 17:13, wrote: > On 24/08/17 17:04, Jan Beulich wrote: > On 24.08.17 at 16:48, wrote: >>> How would the guest know whether using v2 grants is no disadvantage? >> >> As said - it's always going to be a disadvantage. Even if controlling >>

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-24 Thread Juergen Gross
On 24/08/17 17:04, Jan Beulich wrote: On 24.08.17 at 16:48, wrote: >> On 24/08/17 16:28, Jan Beulich wrote: >> On 21.08.17 at 20:05, wrote: Today a guest can get the maximum grant table frame number for the currently selected grant table

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-24 Thread Jan Beulich
>>> On 24.08.17 at 16:48, wrote: > On 24/08/17 16:28, Jan Beulich wrote: > On 21.08.17 at 20:05, wrote: >>> Today a guest can get the maximum grant table frame number for the >>> currently selected grant table interface version (1 or 2) only. Add >>> a new

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-24 Thread Juergen Gross
On 24/08/17 16:48, Juergen Gross wrote: > On 24/08/17 16:28, Jan Beulich wrote: > On 21.08.17 at 20:05, wrote: >>> Today a guest can get the maximum grant table frame number for the >>> currently selected grant table interface version (1 or 2) only. Add >>> a new grant table

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-24 Thread Juergen Gross
On 24/08/17 16:28, Jan Beulich wrote: On 21.08.17 at 20:05, wrote: >> Today a guest can get the maximum grant table frame number for the >> currently selected grant table interface version (1 or 2) only. Add >> a new grant table operation to get the limits of both variants

Re: [Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-24 Thread Jan Beulich
>>> On 21.08.17 at 20:05, wrote: > Today a guest can get the maximum grant table frame number for the > currently selected grant table interface version (1 or 2) only. Add > a new grant table operation to get the limits of both variants in > order to give the guest an opportunity

[Xen-devel] [PATCH 5/5] xen: add new hypercall to get grant table limits

2017-08-21 Thread Juergen Gross
Today a guest can get the maximum grant table frame number for the currently selected grant table interface version (1 or 2) only. Add a new grant table operation to get the limits of both variants in order to give the guest an opportunity to select the version serving its needs best. Background