Re: [PATCH] LoongArch: Enable generic CPU vulnerabilites support
From: Xi Ruoyao
Date: Tue Sep 24 2024 - 03:48:32 EST
On Tue, 2024-09-24 at 14:20 +0800, Tiezhu Yang wrote:
> Currently, many architectures support generic CPU vulnerabilites,
> such as x86, arm64 and riscv:
>
> commit 61dc0f555b5c ("x86/cpu: Implement CPU vulnerabilites sysfs functions")
> commit 61ae1321f06c ("arm64: enable generic CPU vulnerabilites support")
> commit 0e3f3649d44b ("riscv: Enable generic CPU vulnerabilites support")
>
> All LoongArch CPUs (not only LS3A5000)
There will be other LoongArch CPUs (some may be even not designed by
Loongson Technology). So to me we should match the CPUCFG.PRID value
and report "Unknown: No mitigations" for unknown models, instead of
being too optimistic and report "Not Affected" for them.
--
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University