diff options
| author | David Dunn <daviddunn@google.com> | 2022-02-23 22:57:41 +0000 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-02-25 08:20:14 -0500 |
| commit | ba7bb663f5547ef474c98df99a97bb4a13c5715f (patch) | |
| tree | edf880ca47225e0903485a4ff16a55824152cdd8 /tools/testing/selftests/kvm/lib/kvm_util.c | |
| parent | KVM: x86: Fix pointer mistmatch warning when patching RET0 static calls (diff) | |
| download | linux-ba7bb663f5547ef474c98df99a97bb4a13c5715f.tar.gz linux-ba7bb663f5547ef474c98df99a97bb4a13c5715f.zip | |
KVM: x86: Provide per VM capability for disabling PMU virtualization
Add a new capability, KVM_CAP_PMU_CAPABILITY, that takes a bitmask of
settings/features to allow userspace to configure PMU virtualization on
a per-VM basis. For now, support a single flag, KVM_PMU_CAP_DISABLE,
to allow disabling PMU virtualization for a VM even when KVM is configured
with enable_pmu=true a module level.
To keep KVM simple, disallow changing VM's PMU configuration after vCPUs
have been created.
Signed-off-by: David Dunn <daviddunn@google.com>
Message-Id: <20220223225743.2703915-2-daviddunn@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/kvm_util.c')
0 files changed, 0 insertions, 0 deletions
