RE: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-06 Thread Penny Zheng
> To: Penny Zheng > >> Cc: Wei Chen ; Henry Wang > ; > >> Andrew Cooper ; George Dunlap > >> ; Julien Grall ; Stefano > >> Stabellini ; Wei Liu ; xen- > >> de...@lists.xenproject.org > >> Subject: Re: [PATCH v3 6/6] xen: retrieve reserved pages

Re: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Jan Beulich
l ; Stefano Stabellini >> ; Wei Liu ; xen- >> de...@lists.xenproject.org >> Subject: Re: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap >> >> On 05.05.2022 15:44, Penny Zheng wrote: >>> I misunderstand what you suggested here, I thought you were sugg

RE: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Penny Zheng
Hi jan > -Original Message- > From: Jan Beulich > Sent: Thursday, May 5, 2022 10:23 PM > To: Penny Zheng > Cc: Wei Chen ; Henry Wang ; > Andrew Cooper ; George Dunlap > ; Julien Grall ; Stefano Stabellini > ; Wei Liu ; xen- > de...@lists.xenproject.org > S

Re: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Jan Beulich
On 05.05.2022 15:44, Penny Zheng wrote: > I misunderstand what you suggested here, I thought you were suggesting a way > of stub function > which could bring some optimization. > The reason I introduced free_staticmem_pages and acquire_reserved_page here > is that > we now used them in common cod

RE: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Penny Zheng
Hi Jan > -Original Message- > From: Jan Beulich > Sent: Thursday, May 5, 2022 8:07 PM > To: Penny Zheng > Cc: Wei Chen ; Henry Wang ; > Andrew Cooper ; George Dunlap > ; Julien Grall ; Stefano Stabellini > ; Wei Liu ; xen- > de...@lists.xenproject.org > S

Re: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Jan Beulich
On 05.05.2022 11:29, Penny Zheng wrote: >> -Original Message- >> From: Jan Beulich >> Sent: Thursday, May 5, 2022 4:51 PM >> >> On 05.05.2022 10:44, Penny Zheng wrote: -Original Message- From: Jan Beulich Sent: Thursday, May 5, 2022 3:47 PM On 05.05.2022 0

RE: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Penny Zheng
To: Penny Zheng > >> Cc: Wei Chen ; Henry Wang > ; > >> Andrew Cooper ; George Dunlap > >> ; Julien Grall ; Stefano > >> Stabellini ; Wei Liu ; xen- > >> de...@lists.xenproject.org > >> Subject: Re: [PATCH v3 6/6] xen: retrieve reserved pages

Re: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Jan Beulich
l ; Stefano >> Stabellini ; Wei Liu ; xen- >> de...@lists.xenproject.org >> Subject: Re: [PATCH v3 6/6] xen: retrieve reserved pages on >> populate_physmap >> >> On 05.05.2022 08:24, Penny Zheng wrote: >>>> From: Jan Beulich >>>> Sen

RE: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Penny Zheng
Hi jan > -Original Message- > From: Jan Beulich > Sent: Thursday, May 5, 2022 3:47 PM > To: Penny Zheng > Cc: Wei Chen ; Henry Wang ; > Andrew Cooper ; George Dunlap > ; Julien Grall ; Stefano > Stabellini ; Wei Liu ; xen- > de...@lists.xenproject.org > S

Re: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-05 Thread Jan Beulich
On 05.05.2022 08:24, Penny Zheng wrote: >> From: Jan Beulich >> Sent: Wednesday, May 4, 2022 9:45 PM >> >> On 27.04.2022 11:27, Penny Zheng wrote: >>> #else >>> void free_staticmem_pages(struct page_info *pg, unsigned long nr_mfns, >>>bool need_scrub) { >>> ASSE

RE: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-04 Thread Penny Zheng
Hi jan > -Original Message- > From: Jan Beulich > Sent: Wednesday, May 4, 2022 9:45 PM > To: Penny Zheng > Cc: Wei Chen ; Henry Wang ; > Andrew Cooper ; George Dunlap > ; Julien Grall ; Stefano > Stabellini ; Wei Liu ; xen- > de...@lists.xenproject.org > S

Re: [PATCH v3 6/6] xen: retrieve reserved pages on populate_physmap

2022-05-04 Thread Jan Beulich
On 27.04.2022 11:27, Penny Zheng wrote: > --- a/xen/common/memory.c > +++ b/xen/common/memory.c > @@ -245,6 +245,29 @@ static void populate_physmap(struct memop_args *a) > > mfn = _mfn(gpfn); > } > +else if ( is_domain_using_staticmem(d) ) > +