[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 01/16] x86/P2M: rename p2m_remove_page()
On 04.02.2022 22:54, George Dunlap wrote: > On Mon, Jul 5, 2021 at 5:05 PM Jan Beulich <jbeulich@xxxxxxxx> wrote: > --- a/xen/arch/x86/mm/p2m.c >> +++ b/xen/arch/x86/mm/p2m.c >> @@ -788,8 +788,8 @@ void p2m_final_teardown(struct domain *d >> #ifdef CONFIG_HVM >> >> static int __must_check >> -p2m_remove_page(struct p2m_domain *p2m, gfn_t gfn, mfn_t mfn, >> - unsigned int page_order) >> +p2m_remove_entry(struct p2m_domain *p2m, gfn_t gfn, mfn_t mfn, >> + unsigned int page_order) >> > > One question that's naturally raised for both this and the following patch > is, what is the new naming "scheme" for these renamed functions, and how do > they relate to the old scheme? > > Overall it seems like the intention is that "guest_physmap_..." can be > called on a domain which may be PV or HVM, while "p2m_..." should only be > called on HVM domains. Yes. I think by the end of the series all p2m_...() named functions pertain to HVM domains only. > There's also "..._entry" vs "..._page". Is the p2m_remove_page / > p2m_remove_entry distinction have a meaning, and is it the same meaning as > guest_physmap_add_page / guest_physmap_add_entry? In the next patch a pair p2m_{add,remove}_page() is introduced. p2m_remove_entry() remains a static helper for the latter of the two, assuming the GFN is already locked. I've used the "page" vs "entry" in the names just like it was used prior to patch 2; I'd be happy to take suggestions on what else could be used in place of "entry" (but I'd like to stick to "page"). Jan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |