> On 19 Mar 2024, at 14:58, Michal Orzel <michal.or...@amd.com> wrote: > > Hi Luca, > > On 12/03/2024 14:03, Luca Fancellu wrote: >> >> >> The user of shm_mem member of the 'struct kernel_info' is only >> the code managing the static shared memory feature, which can be >> compiled out using CONFIG_STATIC_SHM, so in case the feature is >> not requested, that member won't be used and will waste memory >> space. >> >> To address this issue, protect the member with the Kconfig parameter >> and modify the signature of the only function using it to remove >> any reference to the member from outside the static-shmem module. >> >> Signed-off-by: Luca Fancellu <luca.fance...@arm.com> > Reviewed-by: Michal Orzel <michal.or...@amd.com> > > NIT: I always wonder why we have hundreds of functions taking both struct > domain and > struct kernel_info as arguments if the latter has the former as its member. > As you are > revisiting the function and modifying parameter list, you could take the > opportunity > to change it. But you don't have to. You are right, can I do this modification as part of patch 3 and this one? Also, can I keep your R-by here when doing this change? > > ~Michal >
- Re: [PATCH 03/11] xen/arm: Introduce a generic way to a... Michal Orzel
- Re: [PATCH 03/11] xen/arm: Introduce a generic way ... Luca Fancellu
- Re: [PATCH 03/11] xen/arm: Introduce a generic way ... Julien Grall
- [PATCH 07/11] xen/arm: Avoid code duplication in check_reser... Luca Fancellu
- [PATCH 11/11] xen/arm: List static shared memory regions as ... Luca Fancellu
- Re: [PATCH 11/11] xen/arm: List static shared memory re... Michal Orzel
- Re: [PATCH 11/11] xen/arm: List static shared memor... Luca Fancellu
- Re: [PATCH 11/11] xen/arm: List static shared m... Michal Orzel
- [PATCH 04/11] xen/arm: Conditional compilation of kernel_inf... Luca Fancellu
- Re: [PATCH 04/11] xen/arm: Conditional compilation of k... Michal Orzel
- Re: [PATCH 04/11] xen/arm: Conditional compilation ... Luca Fancellu
- Re: [PATCH 04/11] xen/arm: Conditional compilat... Michal Orzel
- [PATCH 02/11] xen/arm: avoid repetitive checking in process_... Luca Fancellu
- [PATCH 09/11] xen/arm: remove shm holes for extended regions Luca Fancellu
- Re: [PATCH 09/11] xen/arm: remove shm holes for extende... Michal Orzel
- Re: [PATCH 09/11] xen/arm: remove shm holes for ext... Luca Fancellu
- [PATCH 06/11] xen/arm: Avoid code duplication in find_unallo... Luca Fancellu
- Re: [PATCH 06/11] xen/arm: Avoid code duplication in fi... Michal Orzel
- Re: [PATCH 06/11] xen/arm: Avoid code duplication i... Luca Fancellu
- Re: [PATCH 06/11] xen/arm: Avoid code duplicati... Michal Orzel