Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2340494pxp; Mon, 21 Mar 2022 17:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzM5cWnOrveoeg8Oih4LBdNG2pnQvinE92arCgSBkiU1AlscNV+Up1ophLwmqohg5PbL8i X-Received: by 2002:a63:1b51:0:b0:37f:fc7e:7669 with SMTP id b17-20020a631b51000000b0037ffc7e7669mr19816879pgm.244.1647908773391; Mon, 21 Mar 2022 17:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647908773; cv=none; d=google.com; s=arc-20160816; b=GRnHe5QA309wlPm8tPK1BWYFPVHtqU33jMtwg82U9b/KyYwLq/D4U++htErjGCsZD1 BomyeNMlkYTIr0Qt5ShRYHtoU04RIVDuON6TI9LnTX7TKWJ1JRIC3qDGc9KU3fxqX4ae 6nvG4vU3MPhXTVL6ZEU2kafX7ITWvaEmheNtfiIxtv80IL+cPUaVTm9oUmTT42Hq3XQN XimYf3ytlS5MgTzw5xwaLv/Ldpb1kXfAVEo5h3AtiBCJpJA5Bjmbg61x4M6khmJxbQwg fSAQcGiW35MAgl34jnIVqxPWqrLwt2SZUgQSKAONLDJjZ0zukhrfxiikf7psM9RtR/mZ GFpg== 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=03AtXXduXg1zb1Lu6FvRz8gaF3DklY9yvpB3ES+4Dvo=; b=mU1mVU/KJyTkBVEOZ5NeHyXgfFsXXSCofDVwD86n+yFLrpXxo7F84hjHPJrPhgS7jc a9NXaK8lf0R0dZd58dI8BfE4xWv3plqTMZz+x1TSGjDJjf8ZUSrJ7jWbkiZjqmk9ojTl zVe/h9M70TdF1NkveRfa/+Ujq2IBV4fdFqNg+SRlairozAumBmHdgEWxapPtWuIe48Hb v5snzTo3pgBqhsHH2uXmgr28sRPOZnxt1oY8gpHkNIETCd+6GZ4hG/HnqZ6TQtVkq9IP Ngd3OogH3y+bbS8lvKCp+9lnAsQ/W97MAWBuEMLsq8SotjBz/yyNUXPfSTdJF4NVBcA6 Szhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Q1xUUUml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bf9-20020a656d09000000b003816043efd1si12373458pgb.454.2022.03.21.17.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 17:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Q1xUUUml; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14A2B288A86; Mon, 21 Mar 2022 16:54:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbiCUXvf (ORCPT + 99 others); Mon, 21 Mar 2022 19:51:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233567AbiCUXvN (ORCPT ); Mon, 21 Mar 2022 19:51:13 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2D7221A8A2 for ; Mon, 21 Mar 2022 16:49:19 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id s68-20020a625e47000000b004fa6520b540so7126601pfb.17 for ; Mon, 21 Mar 2022 16:49:19 -0700 (PDT) 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=03AtXXduXg1zb1Lu6FvRz8gaF3DklY9yvpB3ES+4Dvo=; b=Q1xUUUmlqEpBGcIC6H+wXtC8Gr2rWlrSz7NI5xNmSE0uvZIhuVGBn3UBiUKZBNEP3y uVJDWwuVe+43rOQ4ih/Q02ttE3rAuFeZ09lxezOVwWDDfJ/49M59H936VvqCqVYdbPMz kEr69NpA4DkdxnFB5YyruXcZUqGqEGBmB45uzV/etPNq43icb12Av7RpQmZLXgbm9A9d 8uKXZ3Ng66TKGPqurVnVl/3Q/ufsUqWlXF1Hij+3jE1dOt3pcaa68W2Z/fgm6VNv7jnh RwqSAAEAJ/T9NOGtFFtqaoreplYfA45saZWQEXhVN28LoX1yyKAGp9P24yQf0lLNQt6j kjAQ== 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=03AtXXduXg1zb1Lu6FvRz8gaF3DklY9yvpB3ES+4Dvo=; b=deeUxahzATMYa2fO3zxl8HwnzJhEuOuEgZBZGJPkCKFOsgtzanhhGTdd2GSM2GvWEC L6RClTZG4rOrmKeAEmk3O/iQ2B18O89ighCBSCi9o3SqCaC3LrLeG0BidzdgKJzkWpq9 2dBcTlYTybEi0L6z/xzH+vHo70zvDMnZ14Y12WLyJP0dtDIN81jtevWTWQvusXSyefLH ZAPRJHXdh4Ra9havuW4xZ4elhfy1437zu6QQ58T518wvogSCZByRZD1Swai8IZRUrNXl xMVay4kjylHDS+0hRx/iByQK9gLO5bvJTQvXcuXUSkvNQxetE/qmOn1xknkZ8Ux9pO7j iPAg== X-Gm-Message-State: AOAM533oVv34W/ZFaHH9T6mxnkp/eBkgBolupZCdI4BARNgdqrdW4qJ8 +2LtT31sbM1gryZQwBX2z1BZ5bE1McRTHwAOOdB0qihFFuSAZyvUUJvLSmcGKnxe2T2Zl3oHO/f zB/7o4q9Yc6MJ2cP+2Iei+ZztV3ctde5E751UjsaO9sclKRjzhXaCd88k1qXEiiItYjSaryUf X-Received: from bgardon.sea.corp.google.com ([2620:15c:100:202:b76a:f152:cb5e:5cd2]) (user=bgardon job=sendgmr) by 2002:aa7:943a:0:b0:4f6:adc9:d741 with SMTP id y26-20020aa7943a000000b004f6adc9d741mr25936431pfo.30.1647906558205; Mon, 21 Mar 2022 16:49:18 -0700 (PDT) Date: Mon, 21 Mar 2022 16:48:43 -0700 In-Reply-To: <20220321234844.1543161-1-bgardon@google.com> Message-Id: <20220321234844.1543161-11-bgardon@google.com> Mime-Version: 1.0 References: <20220321234844.1543161-1-bgardon@google.com> X-Mailer: git-send-email 2.35.1.894.gb6a874cedc-goog Subject: [PATCH v2 10/11] 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.894.gb6a874cedc-goog