Re: [PATCH v3 4/8] xen/arm: introduce put_page_nr and get_page_nr

2022-05-13 Thread Julien Grall
/8] xen/arm: introduce put_page_nr and get_page_nr On 12/05/2022 10:11, 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

RE: [PATCH v3 4/8] xen/arm: introduce put_page_nr and get_page_nr

2022-05-12 Thread Penny Zheng
Hi Julien > -Original Message- > From: Julien Grall > Sent: Thursday, May 12, 2022 6:14 PM > To: Penny Zheng ; xen-devel@lists.xenproject.org > Cc: Wei Chen ; Stefano Stabellini > ; Bertrand Marquis ; > Volodymyr Babchuk > Subject: Re: [PATCH v3 4/8] xen/ar

Re: [PATCH v3 4/8] xen/arm: introduce put_page_nr and get_page_nr

2022-05-12 Thread Julien Grall
On 12/05/2022 10:11, 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