[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 5/6] x86/pv: map and unmap page tables in mark_pv_pt_pages_rdonly
On Tue, Apr 28, 2020 at 05:33:29PM +0200, Jan Beulich wrote: > On 17.04.2020 11:52, Hongyan Xia wrote: > > --- a/xen/arch/x86/pv/dom0_build.c > > +++ b/xen/arch/x86/pv/dom0_build.c > > @@ -50,17 +50,17 @@ static __init void mark_pv_pt_pages_rdonly(struct > > domain *d, > > unsigned long count; > > struct page_info *page; > > l4_pgentry_t *pl4e; > > - l3_pgentry_t *pl3e; > > - l2_pgentry_t *pl2e; > > - l1_pgentry_t *pl1e; > > + l3_pgentry_t *pl3e, *l3t; > > + l2_pgentry_t *pl2e, *l2t; > > + l1_pgentry_t *pl1e, *l1t; > > I don't quite see why the new local variables get introduced: > unmap_domain_page(), iirc, is quite fine with a non-page- > aligned argument. (Assuming this is actually written by me) I wanted to make things abundantly clear: plXe points to an entry while lXt points to the start of a page table. In a long function the distinction could be helpful; in a short function (like this one?) not so much. Wei. > > Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |