Skip to content

Commit 4fa5843

Browse files
Like Xusean-jc
authored andcommitted
KVM: x86/pmu: Fix a typo in kvm_pmu_request_counter_reprogam()
Fix a "reprogam" => "reprogram" typo in kvm_pmu_request_counter_reprogam(). Fixes: 68fb475 ("KVM: x86/pmu: Defer reprogram_counter() to kvm_pmu_handle_event()") Signed-off-by: Like Xu <likexu@tencent.com> Link: https://lore.kernel.org/r/20230310113349.31799-1-likexu@tencent.com [sean: trim the changelog] Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 649bccd commit 4fa5843

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

arch/x86/kvm/pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ static void kvm_pmu_incr_counter(struct kvm_pmc *pmc)
650650
{
651651
pmc->prev_counter = pmc->counter;
652652
pmc->counter = (pmc->counter + 1) & pmc_bitmask(pmc);
653-
kvm_pmu_request_counter_reprogam(pmc);
653+
kvm_pmu_request_counter_reprogram(pmc);
654654
}
655655

656656
static inline bool eventsel_match_perf_hw_id(struct kvm_pmc *pmc,

arch/x86/kvm/pmu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static inline void kvm_init_pmu_capability(const struct kvm_pmu_ops *pmu_ops)
195195
KVM_PMC_MAX_FIXED);
196196
}
197197

198-
static inline void kvm_pmu_request_counter_reprogam(struct kvm_pmc *pmc)
198+
static inline void kvm_pmu_request_counter_reprogram(struct kvm_pmc *pmc)
199199
{
200200
set_bit(pmc->idx, pmc_to_pmu(pmc)->reprogram_pmi);
201201
kvm_make_request(KVM_REQ_PMU, pmc->vcpu);

arch/x86/kvm/svm/pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int amd_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
161161
data &= ~pmu->reserved_bits;
162162
if (data != pmc->eventsel) {
163163
pmc->eventsel = data;
164-
kvm_pmu_request_counter_reprogam(pmc);
164+
kvm_pmu_request_counter_reprogram(pmc);
165165
}
166166
return 0;
167167
}

arch/x86/kvm/vmx/pmu_intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data)
5757
pmc = get_fixed_pmc(pmu, MSR_CORE_PERF_FIXED_CTR0 + i);
5858

5959
__set_bit(INTEL_PMC_IDX_FIXED + i, pmu->pmc_in_use);
60-
kvm_pmu_request_counter_reprogam(pmc);
60+
kvm_pmu_request_counter_reprogram(pmc);
6161
}
6262
}
6363

@@ -484,7 +484,7 @@ static int intel_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
484484

485485
if (data != pmc->eventsel) {
486486
pmc->eventsel = data;
487-
kvm_pmu_request_counter_reprogam(pmc);
487+
kvm_pmu_request_counter_reprogram(pmc);
488488
}
489489
break;
490490
} else if (intel_pmu_handle_lbr_msrs_access(vcpu, msr_info, false)) {

0 commit comments

Comments
 (0)