Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760012AbcJ1LIl (ORCPT ); Fri, 28 Oct 2016 07:08:41 -0400 Received: from mail.skyhub.de ([78.46.96.112]:44871 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750878AbcJ1LIi (ORCPT ); Fri, 28 Oct 2016 07:08:38 -0400 Date: Fri, 28 Oct 2016 13:08:34 +0200 From: Borislav Petkov To: Paolo Bonzini Cc: "Luc, Piotr" , "kvm@vger.kernel.org" , "he.chen@linux.intel.com" , "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "x86@kernel.org" , "hpa@zytor.com" , "mingo@redhat.com" , "Kang, Luwei" , "rkrcmar@redhat.com" Subject: Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest Message-ID: <20161028110834.svzzs5hftg3bybiz@pd.tnic> References: <1477645960-6898-1-git-send-email-he.chen@linux.intel.com> <1477649272.17668.7.camel@intel.com> <5c00fdf0-a5a4-7a78-4ed8-8ae3ef710a68@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5c00fdf0-a5a4-7a78-4ed8-8ae3ef710a68@redhat.com> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 406 Lines: 16 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.