Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935772AbcJ2NVw convert rfc822-to-8bit (ORCPT ); Sat, 29 Oct 2016 09:21:52 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:38721 "EHLO mx3-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932372AbcJ2NVt (ORCPT ); Sat, 29 Oct 2016 09:21:49 -0400 Date: Sat, 29 Oct 2016 09:20:08 -0400 (EDT) From: Paolo Bonzini To: Borislav Petkov 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 Message-ID: <682011056.9324187.1477747208267.JavaMail.zimbra@redhat.com> In-Reply-To: <20161029125310.aqfe7dxz2qda7wby@pd.tnic> References: <1477645960-6898-1-git-send-email-he.chen@linux.intel.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> <20161029125310.aqfe7dxz2qda7wby@pd.tnic> Subject: Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.4.164.1, 10.5.101.130] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF49 (Linux)/8.0.6_GA_5922) Thread-Topic: x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest Thread-Index: kmGTNlIZFaOeBayejyuTARjUdKNO2g== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 23 ----- Original Message ----- > 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 > Sent: Saturday, October 29, 2016 2:53:10 PM > Subject: Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest > > 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. Yup. That's what I said before (entry->edx &= cpuid_count_edx(7, 0)). Paolo