Message ID | 20221226111710.51831-4-likexu@tencent.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp859366wrt; Mon, 26 Dec 2022 03:22:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXsUKCfnWVDeaXOgVKycQqMj0OVx8TJR5CvERHSNX08m395u/rnYxqS62hHLawMpIEdVsexZ X-Received: by 2002:a05:6a00:1f0d:b0:56c:3696:ad68 with SMTP id be13-20020a056a001f0d00b0056c3696ad68mr19008356pfb.8.1672053747255; Mon, 26 Dec 2022 03:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672053747; cv=none; d=google.com; s=arc-20160816; b=iFi8mdcJTH6VauNl0RgWETOQ5Eu1fbSNOXlFKiuC3FXrsg0KBB3rfhVj/KHC3IHvNy JMXZA9xIk37l7ncw956KfLMFClskAIwb+UNOGMgeBOw/y9CrRu6FAOVPRCUgev7blNdQ hamUTIspQU3V8YGY9nl2qVGB+n5Vm48LB5x0kXAmvMgOer9VXcZ7tJYP6OF4i+TGgZsR NJMRr5sdQfBeSGTS7iMXiWTmSzEyaJuJzAgjkCTPx3C/pDNuboPFWakk7i2f4P78Svu/ eIToAfxw2sJ4jDyAWib18AFdAJQAWNwYbZltmaQnG7O076cdD33VyeOQhSdZGzFv70zV eAHQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ndX3aqFP5QuEDhvL4ldT5jQnDdYTin+9vnF0038Ulgg=; b=VbGoosHyMfUa+L9JjGOxGvz0OrVYlCn5aiJ87gW8Wx1x4ahwApl5JUOtbWlBHTs86k 762InNwrlyY6GNapwMOVdfzOcQ3kiHoIEmcJxqw3LIdiSH6DNBXBehmLO3FbCLvsZtCE KadG66x8l1MaaL17/t70ziDG35xdG9jq+QG4rTGEhpj0u/pkN22oIPtSGs3ORnPnxLsX cikBC2VZ6o1DNHvEsRekrhJhmZmI2v1Rd4XRFkkzieEx+XavBmCy9s64BGc948kFuvg9 QDGyKsDATnZEOG68O5XIEHWADXlTOogN37L89+2dCjWKrI+lJNwMHRq640ZRHkbPowU5 uBcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RphvVQzw; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056a00238800b0056bc627dbeesi11249452pfc.124.2022.12.26.03.22.06; Mon, 26 Dec 2022 03:22:27 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=RphvVQzw; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232007AbiLZLRv (ORCPT <rfc822;eddaouddi.ayoub@gmail.com> + 99 others); Mon, 26 Dec 2022 06:17:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231890AbiLZLRm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 26 Dec 2022 06:17:42 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECA0F62EE; Mon, 26 Dec 2022 03:17:37 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id g16so828007plq.12; Mon, 26 Dec 2022 03:17:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ndX3aqFP5QuEDhvL4ldT5jQnDdYTin+9vnF0038Ulgg=; b=RphvVQzwFXgVoTS5jqEvakUba+uXRziyjLAqub7pHS+ZxoTKe1DC6NcicuVTOMjJ59 QjADRpuZusVxBx0L5uhUDwYWUkbY4Nn91UdQ7NguH0j2ac9hhJgZDMeQagI/DLejcTve NCzT0s18AeKXfqavujK8qYIIHkoWkx3HsN4hLcNpgvTwFr/VxV1mUG/INW6/+fKec3fQ kHyfaC+GIL+oVgOp6Mbgs9UVGtNd0X/TeoltDnW9j4RqOoc3vsvAPsfB7MaexZLSQe+G vWX3aKbdrUgRq09zjHjSjmbhmu3f5DPdA++MWDNYinIQyerdfqGTI4R9P6KUj8a/n7J1 J+cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ndX3aqFP5QuEDhvL4ldT5jQnDdYTin+9vnF0038Ulgg=; b=WvsnffwsgSIX5fgWKqFiZ0YxTt0uwpYSsdKMt55u6WGg6bFsHuIgMe7ixfEmperpfj 1TBYeMrzOy4WYR1iGu9RR1VtmZnnDPwaGPyvixrnUy9gzlHA0M59oApqLAvjdnUzkk81 C0a2DCcnw/muM7mIechFMegGVZnnn77rAsD3Phua94lBc8g1uVkUs4qrBAr+0yBO1kq8 VI029ZOdtBmoZF+qOFoza94U8VG+41FV/fEf0/+lJRWdMgTRnUhcCQ16mdZiChU0XXTa QmNtQ1UZsv20N/MuiOAIdvquhsHG2rTnL4cZbzxBRILoRXeaAW0Z64qpq+vLfaO6/zCs z+gg== X-Gm-Message-State: AFqh2krRf9B6b/l3sajth05sI7ODoYONtPJUbk3zKeTrARJnbt2+YatL /seye3/CX/79wFGWVoFVLQs= X-Received: by 2002:a05:6a20:ce4b:b0:b2:ed11:284e with SMTP id id11-20020a056a20ce4b00b000b2ed11284emr10544156pzb.52.1672053457446; Mon, 26 Dec 2022 03:17:37 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id dw6-20020a17090b094600b00223f495dc28sm6281490pjb.14.2022.12.26.03.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Dec 2022 03:17:37 -0800 (PST) From: Like Xu <like.xu.linux@gmail.com> X-Google-Original-From: Like Xu <likexu@tencent.com> To: Paolo Bonzini <pbonzini@redhat.com> Cc: Sean Christopherson <seanjc@google.com>, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] KVM: x86: Fix a typo about msrs_to_save_all[] in kvm_init_msr_list() Date: Mon, 26 Dec 2022 19:17:10 +0800 Message-Id: <20221226111710.51831-4-likexu@tencent.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221226111710.51831-1-likexu@tencent.com> References: <20221226111710.51831-1-likexu@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753275430537095398?= X-GMAIL-MSGID: =?utf-8?q?1753275430537095398?= |
Series |
KVM: x86/pmu: Fix accesses to PMU MSRs in two corner cases
|
|
Commit Message
Like Xu
Dec. 26, 2022, 11:17 a.m. UTC
From: Like Xu <likexu@tencent.com> The commit 7a5ee6edb42e ("KVM: X86: Fix initialization of MSR lists") changed the variable name from msrs_to_save[] to msrs_to_save_all[] but it still misused "msrs_to_saved_all[]" in kvm_init_msr_list(). Fix it. Signed-off-by: Like Xu <likexu@tencent.com> --- 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 fcb9c317df59..b419ff9cef3b 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -7012,7 +7012,7 @@ static void kvm_init_msr_list(void) unsigned i; BUILD_BUG_ON_MSG(KVM_PMC_MAX_FIXED != 3, - "Please update the fixed PMCs in msrs_to_saved_all[]"); + "Please update the fixed PMCs in msrs_to_save_all[]"); num_msrs_to_save = 0; num_emulated_msrs = 0;