|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 08/10] xen/arm: keep track of reserved-memory regions
Hi Stefano, On 30/04/2019 22:02, Stefano Stabellini wrote: As we parse the device tree in Xen, keep track of the reserved-memory regions as they need special treatment (follow-up patches will make use of the stored information.) Reuse process_memory_node to add reserved-memory regions to the bootinfo.reserved_mem array. Remove the warning if there is no reg in process_memory_node because it is a normal condition for reserved-memory. And it is not a normal condition for /memory... So your argument here is not sufficient for me to not keep the warning here for /memory. Rather than trying to re-purpose process_memory_node, I would prefer if you move out the parsing of "reg" and then provide 2 functions (one for /memory and one for /reserved-memory). The parsing function will return an error if "reg" is not present, but it can be ignored by /reserved-memory and a warning is added for /memory.
As I pointed out on v1, this is pretty fragile. While ignoring /memory bank is fine if we have no more space, for /reserved-region this may mean using them in Xen allocator with the consequences we all know. If you split the function properly, then you will be able to treat reserved-regions and memory differently. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |