Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3016693rwb; Mon, 15 Aug 2022 16:13:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4yoWHVeMH5q5nQ5ngI9tb8ZRngi2iadaVy0ugpi/7fk0LGzp7lSOepQ0SFTXwazQTinYbB X-Received: by 2002:a05:6402:1f87:b0:43b:b88d:1d93 with SMTP id c7-20020a0564021f8700b0043bb88d1d93mr16202599edc.314.1660605190059; Mon, 15 Aug 2022 16:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605190; cv=none; d=google.com; s=arc-20160816; b=d+UF7Dr1PYZdurFPEWIrnx93zUuVfSqMORAbfoySOPyt7Y1m8IZCyrAD8t7WRC4xip AgDNzFDXmUuHxMCYlSmwt6u0ToCsk2ImrBY9VM14JplSqU7UFGKe1nmuh1TFOBrL1Bc5 IgSpB4ymKHQXpmlvGHncl4NcuvIcttjPYYhHnATRodk8/BTd3QyRp0OhKh8xwpJzjPL+ 544U2B3Iv9RDovy7EN7X0vS6KFRmX0QzbQ88IJ+dXEp0wY/HuHr9GQre4kyaGVSOVd3F Nh+TRM3sHlqrU2r4DjNHrgO1ynuYafeqi5SqTSCraSkIIuEqSgovHQ+8GxX6XSc4GBMf 2GDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AyzNeVLn9iKf81ZAxa43HRTHiXZE+lhCwDetvfKxmrI=; b=JbNt3KVnnP0qsf+UQ+6CAxGYImDLxrB4jgFfMcyo/kvLbWvI6LPl4Il2hSnu/Kwcft Be7aiWWPO8W2Nrc+WW3zEdzJmLnYA/HcdT568Jua8XaA250CSdqPX3b92AHyySMQw4XQ rUkvbpTPTbq0OxsCxfh+z3Nhw+G3AI2BDX5va+efoxHMO84Rx4Gl/Fl68i4GCBSNhXLL pQ/fv+diZ1yX3krJpkvDlPrK9zYfmV7I7Z0p5r8JEeOjkNCv+vkFUKsELSS9ZIr1iRzQ G0h7KJxqUF/4tl/AZw8KUKQrm1Hu2oYHd81paOX1Ae+ZFE1zf1o9yH8EMh/1y/hWlYuo xLkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=szpve99R; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cy6-20020a0564021c8600b0043d4f544304si8022104edb.342.2022.08.15.16.12.44; Mon, 15 Aug 2022 16:13:10 -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=@linuxfoundation.org header.s=korg header.b=szpve99R; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349528AbiHOVuC (ORCPT + 99 others); Mon, 15 Aug 2022 17:50:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350074AbiHOVrI (ORCPT ); Mon, 15 Aug 2022 17:47:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E08EF5E33B; Mon, 15 Aug 2022 12:30:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C8442B81126; Mon, 15 Aug 2022 19:30:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F9DC433D6; Mon, 15 Aug 2022 19:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591852; bh=0n30SQV2oTUexFgmstOps5qTzO9d1a9NzMVVVLjrvdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=szpve99RwVC20m01gVfm66m+gXoRhQub4LZmNmd9KGTLLivUOkvvSWj/ViJwcn55r mKodYzOyjV2+YMA/YNpCkf5HGbJcpoA13CQt/YUkGwj0jepRNKLcAk7HaS4CQptKfo VELCHyJBIxhz9FuvqIPzgtjWD7aPIolHVE0CTDzw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Matlack , Peter Xu , Ben Gardon , Paolo Bonzini , Sasha Levin Subject: [PATCH 5.18 0690/1095] KVM: x86: Fix errant brace in KVM capability handling Date: Mon, 15 Aug 2022 20:01:29 +0200 Message-Id: <20220815180457.924813944@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Ben Gardon [ Upstream commit 1c4dc57328bf218e999951824dce75c6125c4f3c ] 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") Reviewed-by: David Matlack Reviewed-by: Peter Xu Signed-off-by: Ben Gardon Message-Id: <20220613212523.3436117-8-bgardon@google.com> Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- 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 cc2c89c08d85..767a61e29f51 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4377,10 +4377,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