Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp772703pxp; Fri, 11 Mar 2022 14:45:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJx18tslzrpNat/gpwMBHpxGd4IzRNmBVnOHh6iA5JP7OE2wpV4Ooo/nKVK3UMYfutUv9JEb X-Received: by 2002:a17:902:db11:b0:151:fa7a:7d5e with SMTP id m17-20020a170902db1100b00151fa7a7d5emr12964681plx.125.1647038705128; Fri, 11 Mar 2022 14:45:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647038705; cv=none; d=google.com; s=arc-20160816; b=FGfz+ZlNubb5DzvGSDb8ABFb62Hkftu+O2osk4NCaAWP5nz8l2rxcEeqZNCKlPFWNr JsHFpZYOA9VzWkR9w2Egn6CvGmpt3jLr1XswSVbcn31GFOb2626VT2qNKwYUqwmV2gr9 2GJ1yvWcj4SvO8oS6ZNfxZuJlDAgnYNtMtJArko50hmmsW1yRWcEFmJade/Z+hzKDt0T m8zQWTzGM/z7xsoDXQMgSVnIos3WIND/6424Sl4tNaSnzgPzkGnFC2XmLRbwUWejnkHY v4cdyDg6JwMBO4/xo17f4Pt//p43OZ8TojD2lMRhasgkLa0RVLtoVf0t8JU4cxVl3Cms 9zjQ== 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:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=6/GjUUfRe2TednvAxOrIHMT0ZcA0ouG3TTihxHdaCW0=; b=wM44btK/gpFMR3uj0e8pbKAfO1GEWJEwi4XbP0/V3jpIB497DINVEj4IQW60hpSg1d jiCUmUxpiqjoED5/jXCfNGQljvn0WxFR4C1q8qXkycut9j6AsYZypnGQLri+12EfQFJo ifwOl8CP0QTIRt1aqBKxlCb3bpxrXN6UmOeU1pSESxHhkYOljpGw7ix7CvS++ZoGk9ik S/lhARAnOj8vDlyh6cMd3kV9QB/MZT6qZtMbY3Dh41tomMP/q5eTyppSOeRVcSPAJbus BBGUDgJiJxPYohS6i4i7U5eS9RYPQeEZmJOUxwbWmdEjRWNR8ZH+4Pa/4iO1q81YApnr V5rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ci9RymXt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h186-20020a6253c3000000b004bbbea4dcf1si8592077pfb.74.2022.03.11.14.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:45:05 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ci9RymXt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88B3E37AE1E; Fri, 11 Mar 2022 13:58:01 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239779AbiCJQro (ORCPT + 99 others); Thu, 10 Mar 2022 11:47:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244132AbiCJQr3 (ORCPT ); Thu, 10 Mar 2022 11:47:29 -0500 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D2901986FA for ; Thu, 10 Mar 2022 08:46:17 -0800 (PST) Received: by mail-pl1-x64a.google.com with SMTP id x6-20020a1709029a4600b0014efe26b04fso2952739plv.21 for ; Thu, 10 Mar 2022 08:46:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=6/GjUUfRe2TednvAxOrIHMT0ZcA0ouG3TTihxHdaCW0=; b=Ci9RymXtUyaxSqLze1CsiykAC+coEyY7bha7vdnz2IIfbsq+NipcxCu5E/6SKCYP8P AZWfyT5rXjCdQA1Gc4bceeNSCG3fmAHG5yIaY6IZRZjo4kFmN0YpfdldarRV/GfHnuBu S6vSmARKH46PTiE2z01E5t/V2c3KvFKPvZOphqNi9lLlORngKiLyJmhydv2dYqkYeqtA 1c/QNL7R77dPvsGRnw1KCbfnc/kg1T0Dxlq2eZnnBoYWzQ1Jma9qeKXqm9VBmtJC6bEA JuLGJJoLaYlYhGieelYs4IiVe8BaquDMzGy0TH0xQKbMAD3FEy/HRFuNfprA6v5y0zjf MNeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=6/GjUUfRe2TednvAxOrIHMT0ZcA0ouG3TTihxHdaCW0=; b=m5nuvUzvqDVkJFDsiheSfgnpEaCC7isMwXxcGcMrHw6eHfw0zdMSFvV0il4E7BCjNo MIVHUDIOH+mFRpSkYblbYFX33vsMfl1ShC6nBd7fULpLr0CoJpv29qYNak+QPK65pWEo RU+kZ0cfw6xeOwftf27rFJS5p/RBtPlEVaPCa4Y6eK0Ci8nY6FLVrQ7jp2d2T4sSJ0+t GX+0LZevXG6lzHEEKgJK1OjXw2IEcTnDT1nEa+qIrRmSY1H3u4Z7gxpTMQYI1Pv7YiJw 93i+wmNtgGov6flhr5dgrJDcWd8svt3dnyQVCr1x0WDRUmeZAEjQcpo5TkFVjMvp0Mnn LxFg== X-Gm-Message-State: AOAM532rs9T78uVPOlIoMvedFESGjOoUqwLnxlVzacOgEfzGmaRFQjlG YXzmbdzePBML8XVFqojkL9iknYzyBe5WR/tCtnZNTd3u+BWPhROPoVXrboJgM8yyr4uY4o0gvcN xFhhOloj2uO3EeTfuYy+GBvclnYSwVA+vGc/ZQKDSniJzBLISTzbBguvpaAlqwuLDpt4nMLZM X-Received: from bgardon.sea.corp.google.com ([2620:15c:100:202:2d58:733f:1853:8e86]) (user=bgardon job=sendgmr) by 2002:aa7:8889:0:b0:4f7:7283:e378 with SMTP id z9-20020aa78889000000b004f77283e378mr4535906pfe.36.1646930776770; Thu, 10 Mar 2022 08:46:16 -0800 (PST) Date: Thu, 10 Mar 2022 08:45:30 -0800 In-Reply-To: <20220310164532.1821490-1-bgardon@google.com> Message-Id: <20220310164532.1821490-12-bgardon@google.com> Mime-Version: 1.0 References: <20220310164532.1821490-1-bgardon@google.com> X-Mailer: git-send-email 2.35.1.616.g0bdcbb4464-goog Subject: [PATCH 11/13] KVM: x86: Fix errant brace in KVM capability handling From: Ben Gardon To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Paolo Bonzini , Peter Xu , Sean Christopherson , David Matlack , Jim Mattson , David Dunn , Jing Zhang , Junaid Shahid , Ben Gardon Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 The braces around the KVM_CAP_XSAVE2 block also surround the KVM_CAP_PMU_CAPABILITY block, likely the result of a merge issue. Simply move the curly brace back to where it belongs. Fixes: ba7bb663f5547 ("KVM: x86: Provide per VM capability for disabling PMU virtualization") Signed-off-by: Ben Gardon --- arch/x86/kvm/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 73df90a6932b..74351cbb9b5b 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4352,10 +4352,10 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) if (r < sizeof(struct kvm_xsave)) r = sizeof(struct kvm_xsave); break; + } case KVM_CAP_PMU_CAPABILITY: r = enable_pmu ? KVM_CAP_PMU_VALID_MASK : 0; break; - } case KVM_CAP_DISABLE_QUIRKS2: r = KVM_X86_VALID_QUIRKS; break; -- 2.35.1.616.g0bdcbb4464-goog