RE: [PATCH v2 4/9] xen/arm: introduce put_page_nr and get_page_nr

2022-05-09 Thread Stefano Stabellini
On Sat, 7 May 2022, Penny Zheng wrote: > > On Fri, 6 May 2022, Penny Zheng wrote: > > > Later, we need to add the right amount of references, which should be > > > the number of borrower domains, to the owner domain. Since we only > > > have > > > get_page() to increment the page reference by 1, a

Re: [PATCH v2 4/9] xen/arm: introduce put_page_nr and get_page_nr

2022-05-07 Thread Julien Grall
Hi Penny, On 06/05/2022 08:24, Penny Zheng wrote: Later, we need to add the right amount of references, which should be the number of borrower domains, to the owner domain. Since we only have get_page() to increment the page reference by 1, a loop is needed per page, which is inefficient and tim

RE: [PATCH v2 4/9] xen/arm: introduce put_page_nr and get_page_nr

2022-05-07 Thread Penny Zheng
Hi Stefano > -Original Message- > From: Stefano Stabellini > Sent: Saturday, May 7, 2022 9:09 AM > To: Penny Zheng > Cc: xen-devel@lists.xenproject.org; Wei Chen ; Stefano > Stabellini ; Julien Grall ; Bertrand > Marquis ; Volodymyr Babchuk > > Subject:

Re: [PATCH v2 4/9] xen/arm: introduce put_page_nr and get_page_nr

2022-05-06 Thread Stefano Stabellini
On Fri, 6 May 2022, Penny Zheng wrote: > Later, we need to add the right amount of references, which should be > the number of borrower domains, to the owner domain. Since we only have > get_page() to increment the page reference by 1, a loop is needed per > page, which is inefficient and time-cons