[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221226111710.51831-4-likexu@tencent.com>
Date: Mon, 26 Dec 2022 19:17:10 +0800
From: Like Xu <like.xu.linux@...il.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Sean Christopherson <seanjc@...gle.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] KVM: x86: Fix a typo about msrs_to_save_all[] in kvm_init_msr_list()
From: Like Xu <likexu@...cent.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@...cent.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;
--
2.39.0
Powered by blists - more mailing lists