|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v7 2/2] xen/arm: consolidate make_timer_node and make_timer_domU_node
Hi, On 07/08/2019 11:10, Viktor Mitin wrote: Functions make_timer_node and make_timer_domU_node are quite similar. So it is better to consolidate them to avoid discrepancy. The main difference between the functions is the timer interrupts used. Keep the domU version for the compatible as it is simpler: do not copy platform's 'compatible' property into hwdom device tree, instead set either arm,armv7-timer or arm,armv8-timer, depending on the platform type. I am afraid this comment does not match the code below. The compatible is set based on the domain created not the platform. Also, I think it would be worth mentioning what's the implication of for dom0 as this change behavior. Keep the hw version for the clock as it is relevant for the both cases. I guess you mean "dom0"/"hwdom" version? But then it is not clear what "clock" mean here. Did you intend to refer to "timer frequency"? The code below looks good to me and v8 (actually v9 now...) for such series a bit too much... So let's discuss about the commit message here. I would suggest the following commit message: " xen/arm: domain_build: Consolidate make_timer_node() and make_timer_domU_node() At the moment, the hwdom and domUs are creating the timer node differently.Technically the timer exposed the same way for any domain, the only difference should be the interrupts used. The two current other differences are: - compatible: The hwdom DT will use the same as the one provided by the host provided. The domUs DT will use "arm,armv7-timer" for 32-bit domain and "arm,armv8-timer" for 64-bit domain. The latter matches the behavior of libxl when guests are created from userspace. - clock-frequency: The property is used on platform with broken firmware to indicate the clock frequency. This should be used by all the domains, however this is not yet the case for domUs created by Xen. To avoid more discrepancy the two functions are now consolidated into one place make_timer_node(). For simplicity, the compatible will now be based on the bitness even for the hwdom. This means the compatible exposed for the hwdom may differ. This should only have an impact on 32-bit hwdom booting on Armv8 hardware. "
-- 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 |