Exporting cpu instruction set to kernel .config file

Torin Carey torin at tcarey.uk
Wed Mar 2 12:11:06 EST 2022


Hi Guddla,

On Wed, Mar 02, 2022 at 10:27:15PM +0530, Guddla Rupesh wrote:
> I think that normal kernel shipped by the distro is generic and it
> doesn't have support for latest instructions like avx2, sse4 etc.,. To
> get support we must compile kernel with lots of tuning.

I believe most of these features are indicated by CPUID and are tested
at runtime/boottime, rather than being compiled in.
See https://elixir.bootlin.com/linux/latest/source/arch/x86/include/asm/cpufeatures.h

Torin




More information about the Kernelnewbies mailing list