 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/arm: Move static event channel feature to a separate module
 Hi Michal On 29/11/2023 16:34, Michal Orzel wrote: I guess this is a matter of taste, but I think dt_device_set_static_evtchn_created() and dt_device_static_evtchn_created() are better suited in device_tree.h because they are touching a field in the device tree structure. This would stay consistent with the helper dt_device_set_protected() which is only used by the IOMMU code yet is defined in device_tree.h. That said, I could settle on defining the two helpers in the *.c directly because they are not meant to be used outside of a single *.c. Simarly... diff --git a/xen/arch/arm/include/asm/static-evtchn.h b/xen/arch/arm/include/asm/static-evtchn.h new file mode 100644 index 000000000000..472673fae345 --- /dev/null +++ b/xen/arch/arm/include/asm/static-evtchn.h @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __ASM_STATIC_EVTCHN_H_ +#define __ASM_STATIC_EVTCHN_H_ + +#ifdef CONFIG_STATIC_EVTCHN + +#include <xen/device_tree.h> + +#define STATIC_EVTCHN_NODE_SIZE_CELLS 2 ... this used to be defined in domain_build.c. AFAICT the only use is now in static-evtchn.c. So why is it defined in the header? If this is moved in the *.c, then the header static-evtchn.h would only contain alloc_static_evtchn(). This could be moved in domain_build.h or setup.h (I don't have any preference). Cheers, -- Julien Grall 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |