Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752463AbeADSui (ORCPT + 1 other); Thu, 4 Jan 2018 13:50:38 -0500 Received: from mail.skyhub.de ([5.9.137.197]:51062 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbeADSuh (ORCPT ); Thu, 4 Jan 2018 13:50:37 -0500 Date: Thu, 4 Jan 2018 19:50:33 +0100 From: Borislav Petkov To: Andrea Arcangeli Cc: Tim Chen , Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH , Dave Hansen , Andi Kleen , Arjan Van De Ven , linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] x86/microcode: Recheck IBRS features on microcode reload Message-ID: <20180104185033.tsbijx32as6wqvye@pd.tnic> References: <20180104182858.2nevvgeq5wdojz2w@pd.tnic> <20180104183430.GJ13348@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180104183430.GJ13348@redhat.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 04, 2018 at 07:34:30PM +0100, Andrea Arcangeli wrote: > void spec_ctrl_rescan_cpuid(void) > { > int cpu; > > if (use_ibp_disable) > return; > mutex_lock(&spec_ctrl_mutex); > if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL || > boot_cpu_data.x86_vendor == X86_VENDOR_AMD) { > /* detect spec ctrl related cpuid additions */ > init_scattered_cpuid_features(&boot_cpu_data); You don't need to noodle through all the scattered features - just the two bits. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.