[PATCH v7 4/5] smccc/kvm_guest: Enable errata based on implementation CPUs

Shameerali Kolothum Thodi shameerali.kolothum.thodi at huawei.com
Mon Feb 17 23:40:47 PST 2025



> -----Original Message-----
> From: Marc Zyngier <maz at kernel.org>
> Sent: Friday, February 14, 2025 4:43 PM
> To: Sebastian Ott <sebott at redhat.com>
> Cc: Shameerali Kolothum Thodi
> <shameerali.kolothum.thodi at huawei.com>; kvmarm at lists.linux.dev;
> oliver.upton at linux.dev; catalin.marinas at arm.com; will at kernel.org;
> mark.rutland at arm.com; cohuck at redhat.com; eric.auger at redhat.com;
> yuzenghui <yuzenghui at huawei.com>; Wangzhou (B)
> <wangzhou1 at hisilicon.com>; jiangkunkun <jiangkunkun at huawei.com>;
> Jonathan Cameron <jonathan.cameron at huawei.com>; Anthony Jebson
> <anthony.jebson at huawei.com>; linux-arm-kernel at lists.infradead.org;
> Linuxarm <linuxarm at huawei.com>
> Subject: Re: [PATCH v7 4/5] smccc/kvm_guest: Enable errata based on
> implementation CPUs
> 
> On Fri, 14 Feb 2025 16:12:02 +0000,
> Sebastian Ott <sebott at redhat.com> wrote:
> >
> > On Fri, 14 Feb 2025, Shameer Kolothum wrote:
> > > +++ b/arch/arm64/kernel/cpu_errata.c
> > > @@ -14,6 +14,9 @@
> > > #include <asm/kvm_asm.h>
> > > #include <asm/smp_plat.h>
> > >
> > > +u32 target_impl_cpu_num;
> > > +struct target_impl_cpu *target_impl_cpus;
> >
> > These should be exported (for configs using
> > CONFIG_CORESIGHT_SOURCE_ETM4X=m)

Thanks Sebastian. I missed that.

> 
> It might be better to make is_midr_in_range() out of line, and export
> that. This could allow making the data static (by implementing a
> couple of additional accessors).

Ok. I will give it a go.

Thanks,
Shameer





More information about the linux-arm-kernel mailing list