From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0ED65C433FE for ; Mon, 3 Oct 2022 19:55:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbiJCTz3 (ORCPT ); Mon, 3 Oct 2022 15:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiJCTzY (ORCPT ); Mon, 3 Oct 2022 15:55:24 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7D6812768 for ; Mon, 3 Oct 2022 12:55:23 -0700 (PDT) Received: from zn.tnic (p200300ea9733e749329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e749:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5C3731EC0523; Mon, 3 Oct 2022 21:55:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1664826918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=C4AMfEqwYLZCcWHISoEeNIwMweLpVQZdZ2nH5ec/bCU=; b=OI7PRfrLQHGFF7zAX9txbyVmV++ovKlOjrmMq2mJbr2FTQ9UAp1AXKu6oB9fSi3xAlByWd Q7H7925UadGAAIpmy2DCcxEFg3uCuHLL7Dt4rfGbMNoGZl9lW+UE6D0mMrcUqC20xYCndR mWDjW6fuAFWpK1XxijhCIXz1A8gNhSc= Date: Mon, 3 Oct 2022 21:55:13 +0200 From: Borislav Petkov To: Ricardo Neri Cc: "Peter Zijlstra (Intel)" , Juri Lelli , Vincent Guittot , Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org, "Tim C . Chen" Subject: Re: [RFC PATCH 23/23] x86/process: Reset hardware history in context switch Message-ID: References: <20220909231205.14009-1-ricardo.neri-calderon@linux.intel.com> <20220909231205.14009-24-ricardo.neri-calderon@linux.intel.com> <20221002221238.GB17545@ranerica-svr.sc.intel.com> <20221003194935.GA20128@ranerica-svr.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221003194935.GA20128@ranerica-svr.sc.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 03, 2022 at 12:49:35PM -0700, Ricardo Neri wrote: > Since I did not implement a DISABLE_MASK bit nor a CONFIG_ option for > HRESET, I thought that static_cpu_has() was sufficient. The only function that should be used to query X86_FEATURE_ flags is cpu_feature_enabled(). > I am not against using cpu_feature_enabled(), I just want to confirm that > I also need to implement the DISABLE_MASK bit and the CONFIG_ option. You don't have to. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette