Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2102162pxb; Wed, 9 Feb 2022 10:52:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcW4Q+U5hJjrB65fcqGWkvGJDZXAzBSdq5StkEeaDt5dF6CEZPUEZs7lTq4rVP/zn4HCBv X-Received: by 2002:a17:906:3602:: with SMTP id q2mr3230813ejb.331.1644432777350; Wed, 09 Feb 2022 10:52:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644432777; cv=none; d=google.com; s=arc-20160816; b=hrRI3twGZMhKVIz3ewqVDOmOowSgVg1+7edy4BrzI+Y7bjbYevkFzbh7hoQNU0BH/u H6OF15DWZycgtW8qgzVQ1glUNHnm3l3y0fIpE880hDTKnTrXtACi+cutiPlXO+LB7feJ I2cjosSpQa/9MU1avKCPpCA0AbHxIT6NmxXw9M9j7wSE1iQ3FQTwLCIy9AqSi+y+BMS+ d2GbjQDYZBvow8DtaiZozaQ2dfXJ5GHOyqf+UeKZkfwYrklq+2jLr7T0pjscuFSQWWAc dAjelItmTNHBKimVXQKOKkXUnlI7a/W50fd1MuXu/jGgVwVKPLyWYyhpHUPAb1V2oudr tr4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5oY+tYRFthah59PWP99vpDNgjsdfGaS6KaNNBy4kyZY=; b=LMEVSG7i0fFycergUQtdafhWljZDotzAmeb6XpbROSERA9SCw0P9IrawO9A/WxOwQq hQFhMHBVla2KuvoYMd6gq8tPxUDybHb+VG2h2yK3/JIC/Hk1FIpcTvgeBo15EqdiW+Qd hb8ApMH7AO4sQMPxi4ad07F1Y92POR0xwpZSTfUxHCj+tlK20D7yRC/vyPtwxIRcpP/6 SbBaUtUB0MxNJoPW/4Ykblptd0HH4vPTR7GN+gJ2FT/RZur8UBIHW5wZPcjndBrr6ELN oGjqPSCo7RDV/34gFugIbBlQfJVxvyq411cfM+gfInLZK+D+BOw4EytdqKyPItgtZ1tV 21Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=aIJ24nni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si8730356edf.521.2022.02.09.10.52.31; Wed, 09 Feb 2022 10:52:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=aIJ24nni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229579AbiBISLJ (ORCPT + 99 others); Wed, 9 Feb 2022 13:11:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238717AbiBISLC (ORCPT ); Wed, 9 Feb 2022 13:11:02 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EAC6C05CB86 for ; Wed, 9 Feb 2022 10:11:04 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id y18so2891212plb.11 for ; Wed, 09 Feb 2022 10:11:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5oY+tYRFthah59PWP99vpDNgjsdfGaS6KaNNBy4kyZY=; b=aIJ24nni0G/fFJt3Fk+Xrt1tAddfS8z21PSTPIGPtEOhxBCBIEnzhKwiV19vmBX7MT oISG6XEqBsvTSfcGjfrNRzVUmG4G7AVBM0gFg4LHytZ9J5bSvcffaPEM5cml6AqH0occ w77hsSKNqCJOr56BrPDZw2uhnmAomC7Hk8H/pOEYde30JF755leO6n1GwZiJy7c+3J8K DyQ3vUw/cNfbmWx0UoC0QRlfTTinQmhcd3MzcizC76fS4GKfwPQTqUlQmYwlDDkf/jGD tamup+L/i7ikb7HssLBKpqu9jRU4kCPaWb0CzSItdYdqcUxapMlQyZSwhQWZ27JVJnNb U4wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5oY+tYRFthah59PWP99vpDNgjsdfGaS6KaNNBy4kyZY=; b=M/mbqZzBRpyxUBIthjvNpPbCv0hKPm4U64/imEH4tSKF3ve4AmXIg577gj7awJAxQx ZCud4neGeH1NjhQKhFS/RwHzbK8bRi3r27inOCyNVHuEODL/TkQcXxVIwWYABdSfpav7 t7V1jmI/nC+n4X5i3QCd3h5sXJW0xdN7bmwwFgTHhomRcHEy4ATToLAStNzQQKvUdTEc 9Wlykg6jJ1TCCSgq+SgESWUYblQ99APItnSmv9R/ROhTb9HvreT14JbXt3bmu93UglSx hMxJI+GTp98GpGSIbaTeS8zmDbx83jCf45IJevxp9HxDhwm0gOaDXm9+eqpr9vzkmKqB sSOw== X-Gm-Message-State: AOAM531AM+24RmkV1kxhpjSHXV/1nIFlSO+dah8pjS3kmn5bdlNHYfBS xIg0CFPTrW2a5tUXo7YE+db+Kw== X-Received: by 2002:a17:902:dac7:: with SMTP id q7mr3279304plx.125.1644430263971; Wed, 09 Feb 2022 10:11:03 -0800 (PST) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id my18sm6854817pjb.57.2022.02.09.10.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 10:11:03 -0800 (PST) Date: Wed, 9 Feb 2022 18:10:59 +0000 From: Sean Christopherson To: Chao Gao Cc: kvm@vger.kernel.org, pbonzini@redhat.com, kevin.tian@intel.com, tglx@linutronix.de, Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/5] KVM: x86: Move check_processor_compatibility from init ops to runtime ops Message-ID: References: <20220209074109.453116-1-chao.gao@intel.com> <20220209074109.453116-2-chao.gao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209074109.453116-2-chao.gao@intel.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Wed, Feb 09, 2022, Chao Gao wrote: > so that KVM can do compatibility checks on hotplugged CPUs. Drop __init > from check_processor_compatibility() and its callees. > > use a static_call() to invoke .check_processor_compatibility. > > Opportunistically rename {svm,vmx}_check_processor_compat to conform > to the naming convention of fields of kvm_x86_ops. > > Signed-off-by: Chao Gao > --- Reviewed-by: Sean Christopherson