[PATCH] eal/x86: cache queried CPU flags

Wathsala Wathawana Vithanage wathsala.vithanage at arm.com
Mon Oct 7 18:29:31 CEST 2024


> Rather than re-querying the HW each time a CPU flag is requested, we can just
> save the return value in the flags array. This should speed up repeated
> querying of CPU flags, and provides a workaround for a reported issue where
> errors are seen with constant querying of the AVX-512 CPU flag from a non-
> AVX VM.
> 
> Bugzilla Id: 1501
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---

Hi Bruce,
Why x86/rte_cpuflags.c is not using rte_getauxval() ?


More information about the dev mailing list