Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3086356rwb; Mon, 15 Aug 2022 17:47:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5e2Re7TbuV8O8r9CypqBa9LyxspQhasogiRCKgBk+g3IqNjdJBeX9UzY5Tavl98F5uCDFb X-Received: by 2002:a63:d855:0:b0:429:8f42:2c43 with SMTP id k21-20020a63d855000000b004298f422c43mr2760222pgj.41.1660610867894; Mon, 15 Aug 2022 17:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610867; cv=none; d=google.com; s=arc-20160816; b=E6Ktt2hJpDxv6qcXVjvHTX8dF0xB5ZKR7GJe7DP1hYntjqe+KptQe1wNYYkZtgTbdX 8LrZFwCrZYzvqPsa3SdBKFWGnR2ygpY8p2GiD3MqtI5QmS747pkgJxbfU4WgJhgYORgH eB3Tp9kHIzJa19i4std3SFX+FxIh3ftXZYb4IA75KYYQCagooBxesO6OBxb7jN8NFrRm 6D2aU7UoGu95p70n2O8kiXtIy5OqjPyaq1Q+1I6+3w2cD6w6FQ68ENp5VpRPl1vogQjL rcoWMtb5FDS5rWRtO7oZpZuSfih+B9pyyrHHU2sPTE8GU0evtyYAWQ9EjMM0fShWGmDz bSQw== 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=16BDKIKzIQ0u0exoSL5yUMREI6hetNOYiqDWonkW7Yc=; b=tVCjuIXyWKGc7qxhfNuTNKvRTgeoDHTQrJ9wFJTUQF/QvuAA6/O8ZEHlEj+vmL1IBZ FbA9zdj3TkhhvnFpKBRuXpp8quUdnutvVPdWYgwJofhPWqu8toHoOhOGmYrYpx/OTFQl vPXjZjih0ckzzEqASBO10qIi3rfHizwvbeOO5uVFuSzeInw5MR/qDmkbUUYYgpffWnmw HVPsnwADLhQ9bd7HWLu1YpxEPDGzSLJWq+s1uUzLTmDPqFY1KBkyuwbL95Fgo8UflOIQ TTN8F7aC6R5oavXI5YjDwM4WfZZB7NiWFIvIrFCRvPeIpCbcMQ0NhwoXe77aFp2KMgVE 4ACA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gFZ99AOR; 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 h19-20020a056a00219300b00525b292ccf0si12923437pfi.124.2022.08.15.17.47.37; Mon, 15 Aug 2022 17:47:47 -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=gFZ99AOR; 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 S1350290AbiHPAR4 (ORCPT + 99 others); Mon, 15 Aug 2022 20:17:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351823AbiHPAIc (ORCPT ); Mon, 15 Aug 2022 20:08:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D086D173A0A; Mon, 15 Aug 2022 13:29:13 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 0E72F611A1; Mon, 15 Aug 2022 20:29:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2ECAC433D6; Mon, 15 Aug 2022 20:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595352; bh=sxFls+DEIE/5Au1qzQoTG72ZJ/mCtssf17FvHJv4ZJ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gFZ99AORf4Xe1Azs0xGK5Z3I80ubAqlQn5iRdFR/QbLs291+RI3cH+voh7T651A1D Cegq6rt3FnysNiNdu0T1Zl6PJbC8xbq8yvrsHSQxawCTBUAT8p6ztuaHwQRByOzJCr JLfATQwebMo7NpNDZZNoMQQDkGXkDWhr2EQgTYbY= 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.19 0738/1157] KVM: x86: Fix errant brace in KVM capability handling Date: Mon, 15 Aug 2022 20:01:34 +0200 Message-Id: <20220815180509.001857237@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 583fe0dffcd8..3ed0e86bf305 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4398,10 +4398,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