|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V1 08/29] xen/dts: Don't add a fake property "name" in the device tree
On 09/09/2013 10:40 AM, Ian Campbell wrote: On Mon, 2013-09-09 at 10:30 +0100, Julien Grall wrote:On 09/06/2013 05:28 PM, Ian Campbell wrote:On Wed, 2013-08-28 at 15:47 +0100, Julien Grall wrote:On new Flat Device Tree version, the property "name" may not exist. The property is never used in Xen code except to set the field "name" of dt_device_node. For convenience, remove the fake property. It will save space during the creation of the dom0 FDT.Is it worth diverging from the Linux code this is based on over this though?If we don't diverge, I need to add some logic in device tree creation to know if the "name" property was generated by Xen.Because otherwise it gets included in the DTB given to dom0? Is that harmful though? The current device tree creation code is not able to reallocate memory if the device tree is bigger than the real one plus a small constant. I don't think it's easy to handle it because we don't have realloc function in Xen.
I found this solution a bit ugly, but if we can avoid a divergence and some logic in device creation... I will rework the patch with this solution. Currently, the "name" property value is replicated in the name field of dt_device_node. Except staying close to Linux code, I don't see a good reason to create this fake property. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |