Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755310AbcKJLIq (ORCPT ); Thu, 10 Nov 2016 06:08:46 -0500 Received: from mail.skyhub.de ([78.46.96.112]:47593 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754654AbcKJLIp (ORCPT ); Thu, 10 Nov 2016 06:08:45 -0500 Date: Thu, 10 Nov 2016 12:07:47 +0100 From: Borislav Petkov To: He Chen Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Luwei Kang , Piotr Luc Subject: Re: [PATCH v5 2/3] cpuid: Add a helper in scattered.c to return cpuid Message-ID: <20161110110747.t2hn3kynetkuface@pd.tnic> References: <1478689528-444-1-git-send-email-he.chen@linux.intel.com> <1478689528-444-3-git-send-email-he.chen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1478689528-444-3-git-send-email-he.chen@linux.intel.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: 686 Lines: 23 On Wed, Nov 09, 2016 at 07:05:27PM +0800, He Chen wrote: > Some sparse CPUID leafs are gathered in a fake leaf to save size of > x86_capability array in current code, but sometimes, kernel or other > modules (e.g. KVM cpuid enumeration) may need actual hardware leaf s/cpuid/CPUID/ > information. > > This patch adds a helper get_scattered_cpuid_leaf() to rebuild actual > CPUID leaf, and it can be called outside by modules. > > Signed-off-by: He Chen Modulo $Subject and typo above, the code looks ok to me: Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.