diff options
| author | Sean Christopherson <seanjc@google.com> | 2023-03-10 16:45:58 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2023-04-06 14:57:22 -0700 |
| commit | b1932c5c19ddcbe9140b0583a0931b620c21ca02 (patch) | |
| tree | d7ee51568fe5eb8233e0864e2fab5fd9838a85c5 | |
| parent | KVM: x86/pmu: Disallow legacy LBRs if architectural LBRs are available (diff) | |
| download | linux-b1932c5c19ddcbe9140b0583a0931b620c21ca02.tar.gz linux-b1932c5c19ddcbe9140b0583a0931b620c21ca02.zip | |
KVM: x86: Rename kvm_init_msr_list() to clarify it inits multiple lists
Rename kvm_init_msr_list() to kvm_init_msr_lists() to clarify that it
initializes multiple lists: MSRs to save, emulated MSRs, and feature MSRs.
No functional change intended.
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20230311004618.920745-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
| -rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 237c483b1230..087497aebded 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -7084,7 +7084,7 @@ static void kvm_probe_msr_to_save(u32 msr_index) msrs_to_save[num_msrs_to_save++] = msr_index; } -static void kvm_init_msr_list(void) +static void kvm_init_msr_lists(void) { unsigned i; @@ -9452,7 +9452,7 @@ static int __kvm_x86_vendor_init(struct kvm_x86_init_ops *ops) kvm_caps.max_guest_tsc_khz = max; } kvm_caps.default_tsc_scaling_ratio = 1ULL << kvm_caps.tsc_scaling_ratio_frac_bits; - kvm_init_msr_list(); + kvm_init_msr_lists(); return 0; out_unwind_ops: |
