Skip to content
Commit c85e9867 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: selftests: Add a helper to query if the PMU module param is enabled



Add a helper to probe KVM's "enable_pmu" param, open coding strings in
multiple places is just asking for false negatives and/or runtime errors
due to typos.

Reviewed-by: default avatarDapeng Mi <dapeng1.mi@linux.intel.com>
Tested-by: default avatarDapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240109230250.424295-23-seanjc@google.com
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent b55e7adf
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