Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

From: Borislav Petkov
Date: Fri Oct 28 2016 - 07:08:45 EST


On Fri, Oct 28, 2016 at 12:17:02PM +0200, Paolo Bonzini wrote:
> Otherwise, if you add a cpuid_count_edx function to processor.h then one
> can do:
>
> entry_>edx &= cpuid_count_edx(7, 0);
>
> which is decent too.

If you think of iterating over the cpuid_bits[] array and recreating the
CPUID leaf for KVM, sure, why not...

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.