|
[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 01:13 PM, Ian Campbell wrote: On Wed, 2013-11-20 at 13:04 +0000, Julien Grall wrote: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.That would be concern except the sizes are defined immediately above as shifts based on page numbers. Oh right, I though it was defined as in xen. In any case, I think you should use XC_DOM_PAGE_SHIFT(dom). -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |