|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 7/8] xen: arm: use superpages in p2m when pages are suitably aligned
On 12/06/14 08:30, Ian Campbell wrote: On Wed, 2014-06-11 at 23:19 +0100, Julien Grall wrote:Hi Ian, While I was looking closer to this patch I found something strange. Why all the callers of guest_physmap_add_page in the directory common don't check that the function success to create the mapping?"directory common"? I don't get your meaning. Sorry, I meant xen/common/ + return P2M_ONE_PROGRESS; + } + else if ( level == 3 ) + return -ENOMEM; + } + + BUG_ON(level == 3); /* L3 is always superpage aligned */Did you mean page-aligned?What I meant was that an L3 entry is always "superpage aligned" because it is the smallest possible element. Since I wrote that I renamed my is_superpage_aligned function to is_mapping_aligned. I should perhaps update this comment to reflect that, which would make it clearer. Oh ok. In my mind, L3 is using page alignment not superpage alignment. I think was confuse because in your cover letter you define superpage as 2M or 1G mappings. [..] There is only on call where we don't override the pte.p2m.table bit (the one at the end of p2m_create table). I would move this extra test in the mfn_to_p2m_entry and override only for this specific case. [..] Undo sorry. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |