|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN][PATCH v9 14/19] common/device_tree: Add rwlock for dt_host
Hi, On 25/08/2023 08:52, Vikram Garhwal wrote: Hi, On Thu, Aug 24, 2023 at 11:22:00PM -0700, Vikram Garhwal wrote:Hi Julien, On Wed, Aug 23, 2023 at 11:06:59PM +0100, Julien Grall wrote:Hi Vikram, On 19/08/2023 01:28, Vikram Garhwal wrote:Dynamic programming ops will modify the dt_host and there might be other function which are browsing the dt_host at the same time. To avoid the raceTypo: I think you want to write 'functions'conditions, adding rwlock for browsing the dt_host during runtime. dt_host writer will be added in the follow-up patch titled "xen/arm: Implement device tree node addition functionalities."I would prefer if we avoid mention the name of the follow-up commit. This will reduce the risk that the name of the commit is incorrect if we decide to commit this patch before the rest of the series is ready. Also, the commit message seems to be indented. Was it intended? The goal of the ASSERT() is to confirm that this holds true today and in the future. You could have at least written a comment on top... Regarding the boot function, I would consider to take the lock there too.Will look into it more but for now sending v10 with ASSER in these two functions. Otherwise, you could use: ASSERT(system_state <= SYS_STATE_active || check lock); Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |