Hi Stefano,
On 4/22/19 11:42 PM, Stefano Stabellini wrote:
On Tue, 26 Feb 2019, Julien Grall wrote:
I am not sure about the suggestion of re-using the libfdt concept of
"mem_rsv", which is meant to be for the old /memreserve/. Today, libfdt
(at least our version of it) is not able to parse the new
reserved-memory bindings. I don't think it is a good idea to modify
libfdt for that. Also, the way we want to handle the old memreserve
regions is quite different from the way we want to handle
reserved-memory, right? I cannot see a way to improve this code using
mem_rsv at the moment.
I didn't mean to extend mem_rsv in libfdt but extend consider_modules
and dt_unreserved_regions to deal with /reserved-memory. Otherwise you
may miss some cases (for instance you left out discard_initial_modules).
By extending those two functions you don't have to teach everyone how to
skip /reserved-memory.
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel