All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] KVM: x86: Provide per VM capability for disabling PMU virtualization
@ 2022-01-21 21:06 David Dunn
  2022-01-21 21:07 ` [PATCH v3 1/3] " David Dunn
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Dunn @ 2022-01-21 21:06 UTC (permalink / raw)
  To: kvm, pbonzini, like.xu.linux, jmattson, cloudliang, seanjc; +Cc: daviddunn

This patch set allows usermode to disable PMU virtualization on
individual x86 VMs.  When disabled, the PMU is not advertised to
or accessible from the guest.

Thanks again to Like and Sean for great feedback.  I have incorporated
Like's v2 suggestions in this version.

David Dunn (3):
  KVM: x86: Provide per VM capability for disabling PMU virtualization
  KVM: selftests: Allow creation of selftest VM without vcpus
  KVM: selftests: Verify disabling PMU virtualization via
    KVM_CAP_CONFIG_PMU

 Documentation/virt/kvm/api.rst                | 21 ++++++++
 arch/x86/include/asm/kvm_host.h               |  1 +
 arch/x86/kvm/cpuid.c                          |  8 ++++
 arch/x86/kvm/svm/pmu.c                        |  2 +-
 arch/x86/kvm/vmx/pmu_intel.c                  |  2 +-
 arch/x86/kvm/x86.c                            | 12 +++++
 include/uapi/linux/kvm.h                      |  4 ++
 tools/include/uapi/linux/kvm.h                |  4 ++
 .../selftests/kvm/include/kvm_util_base.h     |  3 ++
 tools/testing/selftests/kvm/lib/kvm_util.c    | 48 ++++++++++++++-----
 .../kvm/x86_64/pmu_event_filter_test.c        | 35 ++++++++++++++
 11 files changed, 125 insertions(+), 15 deletions(-)

-- 
2.35.0.rc0.227.g00780c9af4-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-21 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-21 21:06 [PATCH v3 0/3] KVM: x86: Provide per VM capability for disabling PMU virtualization David Dunn
2022-01-21 21:07 ` [PATCH v3 1/3] " David Dunn
2022-01-21 21:07 ` [PATCH v3 2/3] KVM: selftests: Allow creation of selftest VM without vcpus David Dunn
2022-01-21 21:07 ` [PATCH v3 3/3] KVM: selftests: Verify disabling PMU virtualization via KVM_CAP_CONFIG_PMU David Dunn
2022-01-21 22:20 ` [PATCH v3 0/3] KVM: x86: Provide per VM capability for disabling PMU virtualization David Dunn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.