|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] xen/arm: p2m: Populate pages for GICv2 mapping in arch_domain_create()
On 14/10/2022 10:28, Henry Wang wrote: I understand both of Jan and your concern. I don't really have a strong opinion either way.Hi Jan, Thanks for the review.-----Original Message----- From: Jan Beulich <jbeulich@xxxxxxxx> Subject: Re: [PATCH v2] xen/arm: p2m: Populate pages for GICv2 mapping in arch_domain_create() On 14.10.2022 10:09, Henry Wang wrote: You are the author of the patch, so I will let you chose. The reason why the above block is placed here is just I thought to use d->arch.vgic.version to only populate the 16 pages for GICv2 in the beginning, and d->arch.vgic.version is first assigned later after p2m_init(), but later we decided to populated the pages unconditionally so actually now we can move the part to p2m_init().If that's not possible for some reason, I'd like to suggest passing 1 here as the count and then adding a min-acceptable check to p2m_set_allocation() along the lines of x86'es shadow_set_allocation(). That way you'd also guarantee the minimum number of pages in case a subsequent tiny allocation request came in via domctl. I really dislike this. If the user ask for 1 pages and we only allow 16. Then this should be rejected (not bumped to 16). However, the code in p2m_set_allocation() will only look at the free pages (like x86 does). So what you suggest would not do what you want.
Like Jan, I would prefer if we can avoid the duplication. The loop suggested by Jan should work. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |