Re: [XEN][RFC PATCH v4 11/16] common/device_tree: Add rwlock for dt_host

2023-02-10 Thread Julien Grall
Hi, On 01/02/2023 17:05, Vikram Garhwal wrote: On 12/7/22 8:31 AM, Julien Grall wrote: Signed-off-by: Vikram Garhwal ---   xen/common/device_tree.c  | 27 +++   xen/include/xen/device_tree.h |  6 ++   2 files changed, 33 insertions(+) diff --git a/xen/common/dev

Re: [XEN][RFC PATCH v4 11/16] common/device_tree: Add rwlock for dt_host

2023-02-01 Thread Vikram Garhwal
Hi Julien, On 12/7/22 8:31 AM, Julien Grall wrote: Hi Vikram, On 07/12/2022 06:18, 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 race   conditions, adding rwlock for br

Re: [XEN][RFC PATCH v4 11/16] common/device_tree: Add rwlock for dt_host

2022-12-07 Thread Julien Grall
Hi Vikram, On 07/12/2022 06:18, 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 race conditions, adding rwlock for browsing the dt_host. Looking at the user below, it is

[XEN][RFC PATCH v4 11/16] common/device_tree: Add rwlock for dt_host

2022-12-06 Thread Vikram Garhwal
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 race conditions, adding rwlock for browsing the dt_host. Signed-off-by: Vikram Garhwal --- xen/common/device_tree.c | 27 +++