[PATCH] eal/x86: cache queried CPU flags
David Marchand
david.marchand at redhat.com
Mon Oct 7 13:23:05 CEST 2024
On Mon, Oct 7, 2024 at 1:07 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> 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.
This could be applied to other arches cpuflag implementation.
Copying other arches maintainers as a fyi.
>
> Bugzilla Id: 1501
Bugzilla ID*
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
I did a quick pass, it lgtm.
--
David Marchand
More information about the dev
mailing list