RE: [PATCH 06/10] xen: replace order with nr_pfns in assign_pages for better compatibility

2021-05-18 Thread Penny Zheng
Hi Julien > -Original Message- > From: Julien Grall > Sent: Tuesday, May 18, 2021 6:21 PM > To: Penny Zheng ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org > Cc: Bertrand Marquis ; Wei Chen > ; nd > Subject: Re: [PATCH 06/10] xen: replace order with

Re: [PATCH 06/10] xen: replace order with nr_pfns in assign_pages for better compatibility

2021-05-18 Thread Julien Grall
Hi Penny, On 18/05/2021 06:21, Penny Zheng wrote: Function parameter order in assign_pages is always used as 1ul << order, referring to 2@order pages. Now, for better compatibility with new static memory, order shall be replaced with nr_pfns pointing to page count with no constraint, like 250MB

RE: [PATCH 06/10] xen: replace order with nr_pfns in assign_pages for better compatibility

2021-05-18 Thread Penny Zheng
Hi Jan > -Original Message- > From: Jan Beulich > Sent: Tuesday, May 18, 2021 3:28 PM > To: Penny Zheng > Cc: Bertrand Marquis ; Wei Chen > ; nd ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org; jul...@xen.org > Subject: Re: [PATCH 06/10] xen: repla

Re: [PATCH 06/10] xen: replace order with nr_pfns in assign_pages for better compatibility

2021-05-18 Thread Jan Beulich
On 18.05.2021 07:21, Penny Zheng wrote: > Function parameter order in assign_pages is always used as 1ul << order, > referring to 2@order pages. > > Now, for better compatibility with new static memory, order shall > be replaced with nr_pfns pointing to page count with no constraint, > like 250MB.

[PATCH 06/10] xen: replace order with nr_pfns in assign_pages for better compatibility

2021-05-17 Thread Penny Zheng
Function parameter order in assign_pages is always used as 1ul << order, referring to 2@order pages. Now, for better compatibility with new static memory, order shall be replaced with nr_pfns pointing to page count with no constraint, like 250MB. Signed-off-by: Penny Zheng --- xen/arch/x86/pv/d