Re: [PATCH 01/15] xen/commom/dt-overlay: Fix missing lock when remove the device

2024-04-24 Thread Henry Wang
Hi Jan, On 4/24/2024 1:58 PM, Jan Beulich wrote: On 24.04.2024 05:34, Henry Wang wrote: --- a/xen/common/dt-overlay.c +++ b/xen/common/dt-overlay.c @@ -381,9 +381,14 @@ static int remove_node_resources(struct dt_device_node *device_node) { if (

Re: [PATCH 01/15] xen/commom/dt-overlay: Fix missing lock when remove the device

2024-04-23 Thread Jan Beulich
On 24.04.2024 05:34, Henry Wang wrote: > --- a/xen/common/dt-overlay.c > +++ b/xen/common/dt-overlay.c > @@ -381,9 +381,14 @@ static int remove_node_resources(struct dt_device_node > *device_node) > { > if ( dt_device_is_protected(device_node) ) > { > +

[PATCH 01/15] xen/commom/dt-overlay: Fix missing lock when remove the device

2024-04-23 Thread Henry Wang
If CONFIG_DEBUG=y, below assertion will be triggered: (XEN) Assertion 'rw_is_locked(_host_lock)' failed at drivers/passthrough/device_tree.c:146 (XEN) [ Xen-4.19-unstable  arm64  debug=y  Not tainted ] (XEN) CPU:    0 (XEN) PC: 0a257418 iommu_remove_dt_device+0x8c/0xd4 (XEN)