summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/common.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-11-03 16:05:39 -0700
committerSean Christopherson <seanjc@google.com>2023-11-30 12:52:54 -0800
commitec61b2306dfd117ba5db93dfb54808523ea2b5e0 (patch)
tree4adf7ac6ae5b7bdf44af37999e608ff0f7c9246e /arch/x86/pci/common.c
parentf2f63f7ec6fd13d2d5d5c6d90ea438fbb5a36adc (diff)
downloadlinux-ec61b2306dfd117ba5db93dfb54808523ea2b5e0.tar.gz
linux-ec61b2306dfd117ba5db93dfb54808523ea2b5e0.tar.bz2
linux-ec61b2306dfd117ba5db93dfb54808523ea2b5e0.zip
KVM: x86/pmu: Remove manual clearing of fields in kvm_pmu_init()
Remove code that unnecessarily clears event_count and need_cleanup in kvm_pmu_init(), the entire kvm_pmu is zeroed just a few lines earlier. Vendor code doesn't set event_count or need_cleanup during .init(), and if either VMX or SVM did set those fields it would be a flagrant bug. Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20231103230541.352265-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/pci/common.c')
0 files changed, 0 insertions, 0 deletions