[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v7 5/7] xen: re-define assign_pages and introduce a new function assign_page
On Fri, 10 Sep 2021, Jan Beulich wrote: > On 10.09.2021 04:52, Penny Zheng wrote: > > In order to deal with the trouble of count-to-order conversion when page > > number > > is not in a power-of-two, this commit re-define assign_pages for nr pages > > and > > assign_page for original page with a single order. > > > > Backporting confusion could be helped by altering the order of assign_pages > > parameters, such that the compiler would point out that adjustments at call > > sites are needed. > > Thanks, this now takes care of my primary concern. However, I (now?) have > another (I thought I would have mentioned this before): > > > --- a/xen/common/page_alloc.c > > +++ b/xen/common/page_alloc.c > > @@ -2259,9 +2259,9 @@ void init_domheap_pages(paddr_t ps, paddr_t pe) > > > > > > int assign_pages( > > - struct domain *d, > > struct page_info *pg, > > - unsigned int order, > > + unsigned long nr, > > If this really is to be "unsigned long" (and not "unsigned int"), then... Hi Jan, Thanks for spotting this. I think it makes sense to use "unsigned int nr" here.
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |