|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxc/arm: align to page size the base address of the device tree
On 11/20/2013 09:48 AM, Ian Campbell wrote: On Tue, 2013-11-19 at 18:52 +0000, Julien Grall wrote:xc_dom_alloc_segment requires start address to be page align.I wonder why I didn't see this? It seems very unlikely that my dtb would be exactly page sized, yet it works... Ah, I have >128M of RAM in my guest so the base would be 128M. Well spotted. I think it would be slightly preferable to round dtbsize up to a page. e.g. the following. What do you think? Sounds good to me. I wrote my patch in the other way because I though RAM size can be non-page aligned. XC_PAGE_SHIFT only contains the shift. You should use XC_PAGE_SIZE. Even better, XC_DOM_PAGE_SIZE(dom), so we don't hardcode the size. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |