|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/arm: mm: fix nr_second calculation in setup_frametable_mappings
On 12/05/16 12:30, Peng Fan wrote: Hi Julien, On Thu, May 12, 2016 at 11:48:30AM +0100, Julien Grall wrote:Hi Peng, On 12/05/16 07:36, Peng Fan wrote:To ARM64, "frametable_size >> SECOND_SHIFT" means the number of second level entries, not the number of second level pages. "DIV_ROUND_UP(frametable_size >> SECOND_SHIFT, LPAE_ENTRIES)" is the correct way to calculate the second level pages needed for frametable mapping.Good catch! Yes. For the commit log, I would like to change to this: " To ARM64, "frametable_size >> SECOND_SHIFT" means the number On ARM64, s/means/computes/ of second level entries, not the number of second level pages. "ROUNDUP(frametable_size, FIRST_SIZE) >> FIRST_SHIFT" which means s/means/computes/ the number of the first level entries(the number of second level pages), missing space after "entries" is the correct one that should be used. " 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 |