Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1235702rwl; Fri, 4 Nov 2022 11:21:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jykc3M5Gl4ZKEpmY9irLRpXl6373vJe0VefCsiI1eA+e/IsHc5FD4H7w46tYwSa2JY7Ex X-Received: by 2002:a17:907:d93:b0:78d:fe7a:f1fe with SMTP id go19-20020a1709070d9300b0078dfe7af1femr36996093ejc.721.1667586096496; Fri, 04 Nov 2022 11:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667586096; cv=none; d=google.com; s=arc-20160816; b=qmR8xQz8GMkfogw3I7+s+Gc61TmH+ILtzePpIM3OEk3E1L6TJv7HUQbiNQnQCJjtzx iiKfRJmAAxxVaX0fLhC1oQ2Qo8UN3KwKDZXJ3Ny+AZ0KCLkcMkSOPcyT949jWhFY7Oyn sSTOI9eEsDNEisqmOW7m5y2y7vWmTii7qRjkqw0Q98NGXDJS2LuUROTMO+3hAhGNPc7n vai9jeuvL2Mjaq7IY1TL4Z1pETT5YEf72e2M7oEdeIxwrT/x+js+IBkR4rdIim7H6zTp DPF7PYOieFURqAtyjOocOg+PDiLGFMrFd/MQekYMAtk3z17x8AxYPKoW6gD1aHDjARLI Odaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pPOPNM3vYCz/Z1s0LA7RHwJYYh7DKEACrCv7Y9YF86s=; b=Ubw8PvL0qxARJzwQnkoBBcRPM8i6zq72mMGDvRLRMou6oJ8akzZMO9TMSmyv0vxV9I GmkQBdynHgvmIPBNXERuDItcxfGEeoC99MJqV5eHZ90F8R/+eTKohlPYPbaqPR0rzaNt sauAgg3r6LxAnwReQ/hK8NJ+dcC04kGt06G/FtClKWZj32CPY9mM9KtrPIjHgtkZVc49 HlKseoQ7Z0qIZCP90jPsEW+Ee5RQPJSM96gZaKUCn0Pyqpja8rtIf0kjE5G6p4XpdhdB NDqIk9te1kju4AZ4DV0qPAbQADW++jIFJogjHTFVEj85JMuFNR06471syzVv76zeBWM+ NV/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Madbhs+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a05640213ca00b0043d54ba0a4dsi144962edx.327.2022.11.04.11.21.13; Fri, 04 Nov 2022 11:21:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Madbhs+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbiKDRcg (ORCPT + 96 others); Fri, 4 Nov 2022 13:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiKDRce (ORCPT ); Fri, 4 Nov 2022 13:32:34 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 626FACE11 for ; Fri, 4 Nov 2022 10:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667583153; x=1699119153; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=pPOPNM3vYCz/Z1s0LA7RHwJYYh7DKEACrCv7Y9YF86s=; b=Madbhs+2oULlPfVVYfrWhAibaCngy72xKNiMzBKC9WQJ0qTO/KpUJVj7 RBKjF7Yy+fOicFE+iBeK8DMtf6N+j4clY60uRdLLpuSxLQejwDuqwA0l5 akPZCPy6gD4xKHX6GFpWrGvNb3xn05dQpkA2B9WxQJvNNwO36pQCK7+kW e1V1SrliNf6+ugY/y5xp8bd3lTBENZrYTPFhO/XQNEAPoeSMNRMr3254y rVUOxUuBBiHEGYzOeVykrSPLK+pHGpRH2NFPe6/tdh0tFjCfPkEO53fKl 94PZskqUBOhG1y7S+T+LF/6PwD3ZLp3wpeIG7PbVMsbAQI7E0ywUweOJP A==; X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="372132741" X-IronPort-AV: E=Sophos;i="5.96,138,1665471600"; d="scan'208";a="372132741" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 10:32:33 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10521"; a="635164724" X-IronPort-AV: E=Sophos;i="5.96,138,1665471600"; d="scan'208";a="635164724" Received: from anantsin-mobl2.amr.corp.intel.com (HELO [10.209.97.57]) ([10.209.97.57]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 10:32:32 -0700 Message-ID: <0a04e55c-ccfb-9383-1768-a88f4602fb4e@intel.com> Date: Fri, 4 Nov 2022 10:32:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 5/5] x86: switch to cpu_feature_enabled() for X86_FEATURE_XENPV Content-Language: en-US To: Juergen Gross , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Pu Wen References: <20221104072701.20283-1-jgross@suse.com> <20221104072701.20283-6-jgross@suse.com> From: Dave Hansen In-Reply-To: <20221104072701.20283-6-jgross@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/4/22 00:27, Juergen Gross wrote: > Convert the remaining cases of static_cpu_has(X86_FEATURE_XENPV) and > boot_cpu_has(X86_FEATURE_XENPV) to use cpu_feature_enabled(), allowing > more efficient code in case the kernel is configured without > CONFIG_XEN_PV. As with the rest: Acked-by: Dave Hansen Seems like a very straightforward, sane set of cleanups.