projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0c3d68
)
KVM: x86/pmu: Drop now-redundant refresh() during init()
author
Sean Christopherson
<seanjc@google.com>
Thu, 28 Nov 2024 01:33:38 +0000
(17:33 -0800)
committer
Sean Christopherson
<seanjc@google.com>
Wed, 18 Dec 2024 22:19:33 +0000
(14:19 -0800)
Drop the manual kvm_pmu_refresh() from kvm_pmu_init() now that
kvm_arch_vcpu_create() performs the refresh via kvm_vcpu_after_set_cpuid().
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link:
https://lore.kernel.org/r/20241128013424.4096668-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/pmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/pmu.c
b/arch/x86/kvm/pmu.c
index 47a46283c8667779722ae7ac39099f78701afb89..75e9cfc689f8953de65a5a2503597531bef0dd8e 100644
(file)
--- a/
arch/x86/kvm/pmu.c
+++ b/
arch/x86/kvm/pmu.c
@@
-797,7
+797,6
@@
void kvm_pmu_init(struct kvm_vcpu *vcpu)
memset(pmu, 0, sizeof(*pmu));
kvm_pmu_call(init)(vcpu);
- kvm_pmu_refresh(vcpu);
}
/* Release perf_events for vPMCs that have been unused for a full time slice. */