Commit 4fa5843d authored by Like Xu's avatar Like Xu Committed by Sean Christopherson

KVM: x86/pmu: Fix a typo in kvm_pmu_request_counter_reprogam()

Fix a "reprogam" => "reprogram" typo in kvm_pmu_request_counter_reprogam().

Fixes: 68fb4757 ("KVM: x86/pmu: Defer reprogram_counter() to kvm_pmu_handle_event()")
Signed-off-by: default avatarLike Xu <likexu@tencent.com>
Link: https://lore.kernel.org/r/20230310113349.31799-1-likexu@tencent.com
[sean: trim the changelog]
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 649bccd7
...@@ -650,7 +650,7 @@ static void kvm_pmu_incr_counter(struct kvm_pmc *pmc) ...@@ -650,7 +650,7 @@ static void kvm_pmu_incr_counter(struct kvm_pmc *pmc)
{ {
pmc->prev_counter = pmc->counter; pmc->prev_counter = pmc->counter;
pmc->counter = (pmc->counter + 1) & pmc_bitmask(pmc); pmc->counter = (pmc->counter + 1) & pmc_bitmask(pmc);
kvm_pmu_request_counter_reprogam(pmc); kvm_pmu_request_counter_reprogram(pmc);
} }
static inline bool eventsel_match_perf_hw_id(struct kvm_pmc *pmc, static inline bool eventsel_match_perf_hw_id(struct kvm_pmc *pmc,
......
...@@ -195,7 +195,7 @@ static inline void kvm_init_pmu_capability(const struct kvm_pmu_ops *pmu_ops) ...@@ -195,7 +195,7 @@ static inline void kvm_init_pmu_capability(const struct kvm_pmu_ops *pmu_ops)
KVM_PMC_MAX_FIXED); KVM_PMC_MAX_FIXED);
} }
static inline void kvm_pmu_request_counter_reprogam(struct kvm_pmc *pmc) static inline void kvm_pmu_request_counter_reprogram(struct kvm_pmc *pmc)
{ {
set_bit(pmc->idx, pmc_to_pmu(pmc)->reprogram_pmi); set_bit(pmc->idx, pmc_to_pmu(pmc)->reprogram_pmi);
kvm_make_request(KVM_REQ_PMU, pmc->vcpu); kvm_make_request(KVM_REQ_PMU, pmc->vcpu);
......
...@@ -161,7 +161,7 @@ static int amd_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) ...@@ -161,7 +161,7 @@ static int amd_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
data &= ~pmu->reserved_bits; data &= ~pmu->reserved_bits;
if (data != pmc->eventsel) { if (data != pmc->eventsel) {
pmc->eventsel = data; pmc->eventsel = data;
kvm_pmu_request_counter_reprogam(pmc); kvm_pmu_request_counter_reprogram(pmc);
} }
return 0; return 0;
} }
......
...@@ -57,7 +57,7 @@ static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data) ...@@ -57,7 +57,7 @@ static void reprogram_fixed_counters(struct kvm_pmu *pmu, u64 data)
pmc = get_fixed_pmc(pmu, MSR_CORE_PERF_FIXED_CTR0 + i); pmc = get_fixed_pmc(pmu, MSR_CORE_PERF_FIXED_CTR0 + i);
__set_bit(INTEL_PMC_IDX_FIXED + i, pmu->pmc_in_use); __set_bit(INTEL_PMC_IDX_FIXED + i, pmu->pmc_in_use);
kvm_pmu_request_counter_reprogam(pmc); kvm_pmu_request_counter_reprogram(pmc);
} }
} }
...@@ -484,7 +484,7 @@ static int intel_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) ...@@ -484,7 +484,7 @@ static int intel_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
if (data != pmc->eventsel) { if (data != pmc->eventsel) {
pmc->eventsel = data; pmc->eventsel = data;
kvm_pmu_request_counter_reprogam(pmc); kvm_pmu_request_counter_reprogram(pmc);
} }
break; break;
} else if (intel_pmu_handle_lbr_msrs_access(vcpu, msr_info, false)) { } else if (intel_pmu_handle_lbr_msrs_access(vcpu, msr_info, false)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment