Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31475rwd; Tue, 6 Jun 2023 18:02:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6gogSNM+gskbENEDuVn5UuLFssb43uNkwky1fHjY4byRLQUYEhd4vYH/uhIcFEU59hXCvY X-Received: by 2002:a05:6808:3c7:b0:398:5893:f0c5 with SMTP id o7-20020a05680803c700b003985893f0c5mr3493405oie.37.1686099770495; Tue, 06 Jun 2023 18:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686099770; cv=none; d=google.com; s=arc-20160816; b=urTIxKFONtB7k7Wx8SA5TPlDWchva/9Vvn3BnPTp6IRhoRoN9XlW0OSULvdg3Xq66i 3V6SiC9cFsmIuVpT8Alhp6/f/SG2QdCCUeAdrzGJMj5KZuV7FVKTu+qZKO6Ibgx6GrvP XYwFUDSKBV2argrb9VyyrJM1GpJXPiQyk21w5XaWZ6IFscA35p4abPJj+eBglQY12n9n +4EW5wQgzaXGQiy2o5l5bPI0vE+MUki26RinUjXMM3nJ8R/S1sRA6yGC77RhtzzDKsAI 5jUQ0iniaB2y7wKesemtj+eN4E8G+NonTmgth4CzPOnBcXRcrzhFcBOL6XasRcHKV8iz drNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=pD9JHpKa9k5ZTt3oQtanv15RS2ukb+oCEMW4HydPPPc=; b=BNUYbzl54VHu95looi1QQJX/Lgj+IqQPqD3pmvMaDdCaJnTji+O8sqvVQDP4TfqPOe BxZzUOiV+JyI0rk1lM7puVZsvoc4rgNuEY+cEpz/5DMaLCv4eKM67Kfz3b/+wdfm+vSv wK76bgf+lWA6CTHnkEB323TPFGi4juJIz8CqbVlsMttuR3DjEYLJ2LPaXwC1hV+e2LTC XeOVVDHkoE47SYq979H6cfHiqgabe5J8+q5iHpacUS0uNMVZ436DPswSUJCT2XPjucmK hB0XpSJbheOxJ3jRcTlmBwP8kD/hvPWNmo4bRff5Ah8nUOUJZzqbRKWi1CHZ7dLbUsY9 s7Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=4K4GdjQl; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iy19-20020a170903131300b001a6fe422894si7839361plb.200.2023.06.06.18.02.34; Tue, 06 Jun 2023 18:02:50 -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=@google.com header.s=20221208 header.b=4K4GdjQl; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240369AbjFGAx6 (ORCPT + 99 others); Tue, 6 Jun 2023 20:53:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240047AbjFGAxz (ORCPT ); Tue, 6 Jun 2023 20:53:55 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619921732 for ; Tue, 6 Jun 2023 17:53:54 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-babb76a9831so9961142276.2 for ; Tue, 06 Jun 2023 17:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686099233; x=1688691233; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=pD9JHpKa9k5ZTt3oQtanv15RS2ukb+oCEMW4HydPPPc=; b=4K4GdjQlGVzj7cMvF1aWAyUT1TBmSn3cSo54e+6hd/SRJFIYpbMwVydbVz8akfdd9o YSKbt31ky2uOnw8CCliU694KWa7dqgIXSBL2mIy40+paqzpk/0KvNvmkrf/d2xXNfjOA 4gY9iEMRmQD2ObEmKsD3+7FnL+ubsVrsplXhzlRbVeA9m+fOLB9f9CK9kHdQoIHuEZ+t 6E7+uOy4bvM4B+xKY5GT4QmBBia7duM7Sr8B6DbgnyR/+qP2nkJEgJbhHhgnvwbGLA/z jwiKKm73iQ5FEOjET211bijHaiFLQADbhvMdP5Ci5qk4pQU76wFpR0eApwP31iwMfd3o yLRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686099233; x=1688691233; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pD9JHpKa9k5ZTt3oQtanv15RS2ukb+oCEMW4HydPPPc=; b=jJV9hAQOFhJpOpJLxHYDP/3sSJ/YvrhtyozZxWx5nDNEdOq3b5NmhReqrhmZBgMr0m LDeBldWU0FJUd5ajVMxIqeJtzDcaSKiiCCE+a11wa2c8gljRKdQuW+XcgGMyvoWBsxV6 yMqOBzCvsI0jnQ1HBiE1R8hdIll1LUaLfhtwSaf1gqHCgZHfYrT2NaB+5drKxvFZeo3K KXyfT8yu331Imb1bWCqblCGNZLcer4CQ25g0ld0z1ZB8Qr5TgvJPZdqPBSNoOIJ5J8U5 cUUNoJsl+Do581S2vGK7HmlxdCSmLcH4TS7jOgpgdL0eGHMCpwv9vGIuFPLEqs/zEdL8 V2PQ== X-Gm-Message-State: AC+VfDzxpgwMHEmkq9angddATA6pnVwOT9+KuhKdLlE04wJkBYwMrtUG bCG3zv8PmP7suU/wKU0rxfDIx4eR/p4= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:188c:b0:ba8:8d92:caea with SMTP id cj12-20020a056902188c00b00ba88d92caeamr1413698ybb.1.1686099233638; Tue, 06 Jun 2023 17:53:53 -0700 (PDT) Date: Tue, 6 Jun 2023 17:53:42 -0700 In-Reply-To: <20230602010550.785722-1-seanjc@google.com> Mime-Version: 1.0 References: <20230602010550.785722-1-seanjc@google.com> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <168608971339.1368390.3660632949496517559.b4-ty@google.com> Subject: Re: [PATCH] KVM: x86: Use cpu_feature_enabled() for PKU instead of #ifdef From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jon Kohler Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 Thu, 01 Jun 2023 18:05:50 -0700, Sean Christopherson wrote: > Replace an #ifdef on CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS with a > cpu_feature_enabled() check on X86_FEATURE_PKU. The macro magic of > DISABLED_MASK_BIT_SET() means that cpu_feature_enabled() provides the > same end result (no code generated) when PKU is disabled by Kconfig. > > No functional change intended. > > [...] Applied to kvm-x86 misc, thanks! [1/1] KVM: x86: Use cpu_feature_enabled() for PKU instead of #ifdef https://github.com/kvm-x86/linux/commit/056b9919a16a -- https://github.com/kvm-x86/linux/tree/next https://github.com/kvm-x86/linux/tree/fixes