* [PATCH] hw/arm/smmu-common: Avoid using inlined functions with external linkage
@ 2025-02-14 7:20 JianChunfu
2025-07-18 6:11 ` [PATCH-for-10.1] " Philippe Mathieu-Daudé
0 siblings, 1 reply; 4+ messages in thread
From: JianChunfu @ 2025-02-14 7:20 UTC (permalink / raw)
To: eric.auger, peter.maydell; +Cc: qemu-devel, JianChunfu
Similarly to commit 9de9fa5c ("hw/arm/smmu-common: Avoid using
inlined functions with external linkage"):
None of our code base require / use inlined functions with external
linkage. Some places use internal inlining in the hot path. These
two functions are certainly not in any hot path and don't justify
any inlining, so these are likely oversights rather than intentional.
Fixes: b8fa4c23 (hw/arm/smmu: Support nesting in the rest of commands)
Signed-off-by: JianChunfu <jansef.jian@hj-micro.com>
---
hw/arm/smmu-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c
index 3f8272875..545d763ac 100644
--- a/hw/arm/smmu-common.c
+++ b/hw/arm/smmu-common.c
@@ -298,7 +298,7 @@ void smmu_iotlb_inv_vmid(SMMUState *s, int vmid)
g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
}
-inline void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
+void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
{
trace_smmu_iotlb_inv_vmid_s1(vmid);
g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid_s1, &vmid);
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH-for-10.1] hw/arm/smmu-common: Avoid using inlined functions with external linkage
2025-02-14 7:20 [PATCH] hw/arm/smmu-common: Avoid using inlined functions with external linkage JianChunfu
@ 2025-07-18 6:11 ` Philippe Mathieu-Daudé
2025-07-24 16:54 ` Roman Kiryanov
0 siblings, 1 reply; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-07-18 6:11 UTC (permalink / raw)
To: JianChunfu, eric.auger, peter.maydell
Cc: qemu-devel, Roman Kiryanov, Will Hollins
Hi,
(sorry for previously missing this patch)
(cc'ing Google folks for
https://lore.kernel.org/qemu-devel/20250717205735.2345674-1-rkir@google.com/)
On 14/2/25 08:20, JianChunfu wrote:
> Similarly to commit 9de9fa5c ("hw/arm/smmu-common: Avoid using
> inlined functions with external linkage"):
>
> None of our code base require / use inlined functions with external
> linkage. Some places use internal inlining in the hot path. These
> two functions are certainly not in any hot path and don't justify
> any inlining, so these are likely oversights rather than intentional.
>
> Fixes: b8fa4c23 (hw/arm/smmu: Support nesting in the rest of commands)
I suppose b8fa4c233bd was copy/pasted before 0b796f38106 ("hw/arm/smmu:
Avoid using inlined functions with external linkage again").
> Signed-off-by: JianChunfu <jansef.jian@hj-micro.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> hw/arm/smmu-common.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c
> index 3f8272875..545d763ac 100644
> --- a/hw/arm/smmu-common.c
> +++ b/hw/arm/smmu-common.c
> @@ -298,7 +298,7 @@ void smmu_iotlb_inv_vmid(SMMUState *s, int vmid)
> g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
> }
>
> -inline void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
> +void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
> {
> trace_smmu_iotlb_inv_vmid_s1(vmid);
> g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid_s1, &vmid);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH-for-10.1] hw/arm/smmu-common: Avoid using inlined functions with external linkage
2025-07-18 6:11 ` [PATCH-for-10.1] " Philippe Mathieu-Daudé
@ 2025-07-24 16:54 ` Roman Kiryanov
2025-07-25 9:36 ` Peter Maydell
0 siblings, 1 reply; 4+ messages in thread
From: Roman Kiryanov @ 2025-07-24 16:54 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: JianChunfu, eric.auger, peter.maydell, qemu-devel, Will Hollins,
Nabih Estefan
Hi Philippe, thank you for looking into this.
On Thu, Jul 17, 2025 at 11:11 PM Philippe Mathieu-Daudé
<philmd@linaro.org> wrote:
>
> (sorry for previously missing this patch)
>
> (cc'ing Google folks for
> https://lore.kernel.org/qemu-devel/20250717205735.2345674-1-rkir@google.com/)
Will this patch be included into 10.1?
> On 14/2/25 08:20, JianChunfu wrote:
> > Similarly to commit 9de9fa5c ("hw/arm/smmu-common: Avoid using
> > inlined functions with external linkage"):
> >
> > None of our code base require / use inlined functions with external
> > linkage. Some places use internal inlining in the hot path. These
> > two functions are certainly not in any hot path and don't justify
> > any inlining, so these are likely oversights rather than intentional.
> >
> > Fixes: b8fa4c23 (hw/arm/smmu: Support nesting in the rest of commands)
>
> I suppose b8fa4c233bd was copy/pasted before 0b796f38106 ("hw/arm/smmu:
> Avoid using inlined functions with external linkage again").
>
> > Signed-off-by: JianChunfu <jansef.jian@hj-micro.com>
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH-for-10.1] hw/arm/smmu-common: Avoid using inlined functions with external linkage
2025-07-24 16:54 ` Roman Kiryanov
@ 2025-07-25 9:36 ` Peter Maydell
0 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2025-07-25 9:36 UTC (permalink / raw)
To: Roman Kiryanov
Cc: Philippe Mathieu-Daudé, JianChunfu, eric.auger, qemu-devel,
Will Hollins, Nabih Estefan
On Thu, 24 Jul 2025 at 17:54, Roman Kiryanov <rkir@google.com> wrote:
>
> Hi Philippe, thank you for looking into this.
>
> On Thu, Jul 17, 2025 at 11:11 PM Philippe Mathieu-Daudé
> <philmd@linaro.org> wrote:
> >
> > (sorry for previously missing this patch)
> >
> > (cc'ing Google folks for
> > https://lore.kernel.org/qemu-devel/20250717205735.2345674-1-rkir@google.com/)
>
> Will this patch be included into 10.1?
Yes, I'll pick it up for target-arm.next; thanks.
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-25 9:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 7:20 [PATCH] hw/arm/smmu-common: Avoid using inlined functions with external linkage JianChunfu
2025-07-18 6:11 ` [PATCH-for-10.1] " Philippe Mathieu-Daudé
2025-07-24 16:54 ` Roman Kiryanov
2025-07-25 9:36 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).