Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756634AbcJ2MxR (ORCPT ); Sat, 29 Oct 2016 08:53:17 -0400 Received: from mail.skyhub.de ([78.46.96.112]:58806 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752520AbcJ2MxO (ORCPT ); Sat, 29 Oct 2016 08:53:14 -0400 Date: Sat, 29 Oct 2016 14:53:10 +0200 From: Borislav Petkov To: Paolo Bonzini Cc: Piotr Luc , kvm@vger.kernel.org, he chen , linux-kernel@vger.kernel.org, tglx@linutronix.de, x86@kernel.org, hpa@zytor.com, mingo@redhat.com, Luwei Kang , rkrcmar@redhat.com Subject: Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest Message-ID: <20161029125310.aqfe7dxz2qda7wby@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> <20161028110834.svzzs5hftg3bybiz@pd.tnic> <20161028122123.24i3synevehn6r3p@pd.tnic> <425702906.9319122.1477743677017.JavaMail.zimbra@redhat.com> <20161029122548.niyvh2q3kuvyqwo3@pd.tnic> <1409336705.9320510.1477744571210.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1409336705.9320510.1477744571210.JavaMail.zimbra@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: 540 Lines: 26 On Sat, Oct 29, 2016 at 08:36:11AM -0400, Paolo Bonzini wrote: > Because then it wouldn't be in processor.h. Easy: return cpuid_edx(…) & KVM_CPUID_EDX_7_MASK; at the call site. > Yes, but it doesn't take an ecx. Looks like we need another set of macros :-) > Anyhow this is not an issue for now. It will depend on which other bits > are added to CPUID[7,0].edx, but in general it's relatively rare to blacklist > bits from cpufeature. Right. Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.