aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-06-06 18:02:05 -0700
committerSean Christopherson <[email protected]>2023-08-02 16:44:36 -0700
commit6d88d0ee5de142921598e5c0041792bbd860913d (patch)
tree3007935e0c04149761293bab3900647955fb3ce0 /lib/memory-notifier-error-inject.c
parentbc9658999b3e44cbad964fe9fbab5a25bd4f5ed3 (diff)
KVM: x86/pmu: Require nr fixed_pmc_events to match nr max fixed counters
Assert that the number of known fixed_pmc_events matches the max number of fixed counters supported by KVM, and clean up related code. Opportunistically extend setup_fixed_pmc_eventsel()'s use of array_index_nospec() to cover fixed_counters, as nr_arch_fixed_counters is set based on userspace input (but capped using KVM-controlled values). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions