public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V1 0/4] KVM vPMU support for x86
@ 2014-10-31 16:05 Wei Huang
  2014-10-31 16:05 ` [PATCH V1 1/4] KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch Wei Huang
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Wei Huang @ 2014-10-31 16:05 UTC (permalink / raw)
  To: kvm; +Cc: pbonzini, gleb, rkrcmar, wei

Currently KVM only supports vPMU for Intel platforms. This patch set 
enable vPMU support for AMD platform by creating a common PMU
interface for x86. The PMU calls from guest VMs are dispatched
to corresponding functions defined in arch specific files.

V1:
  * Adopt the file layout suggested by Radim Krčmář
  * Link arch module with its specific PMU file

RFC:
  * Initial version for RFC

Wei Huang (4):
  KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch
  KVM: x86/vPMU: Convert pmu.c code into Intel specific code
  KVM: x86/vPMU: Implement AMD PMU support for KVM
  KVM: x86/vPMU: Enable PMU handling for AMD PERFCTRn and EVNTSELn MSRs

 arch/x86/include/asm/kvm_host.h |  52 ++--
 arch/x86/kvm/Makefile           |   6 +-
 arch/x86/kvm/cpuid.c            |   2 +-
 arch/x86/kvm/lapic.c            |   1 +
 arch/x86/kvm/pmu.c              | 576 ---------------------------------------
 arch/x86/kvm/pmu_amd.c          | 390 ++++++++++++++++++++++++++
 arch/x86/kvm/pmu_intel.c        | 586 ++++++++++++++++++++++++++++++++++++++++
 arch/x86/kvm/svm.c              |   7 +
 arch/x86/kvm/vmx.c              |   7 +
 arch/x86/kvm/x86.c              |  74 ++---
 10 files changed, 1070 insertions(+), 631 deletions(-)
 delete mode 100644 arch/x86/kvm/pmu.c
 create mode 100644 arch/x86/kvm/pmu_amd.c
 create mode 100644 arch/x86/kvm/pmu_intel.c

-- 
1.8.3.1


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

end of thread, other threads:[~2014-11-04 18:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-31 16:05 [PATCH V1 0/4] KVM vPMU support for x86 Wei Huang
2014-10-31 16:05 ` [PATCH V1 1/4] KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch Wei Huang
2014-10-31 16:05 ` [PATCH V1 2/4] KVM: x86/vPMU: Convert pmu.c code into Intel specific code Wei Huang
2014-11-03 18:36   ` Radim Krčmář
2014-11-04 18:38     ` Wei Huang
2014-10-31 16:05 ` [PATCH V1 3/4] KVM: x86/vPMU: Implement AMD PMU support for KVM Wei Huang
2014-11-03 18:17   ` Radim Krčmář
2014-11-04 18:20     ` Wei Huang
2014-10-31 16:05 ` [PATCH V1 4/4] KVM: x86/vPMU: Enable PMU handling for AMD PERFCTRn and EVNTSELn MSRs Wei Huang
2014-11-03 17:56 ` [PATCH V1 0/4] KVM vPMU support for x86 Radim Krčmář
2014-11-03 18:23   ` Wei Huang
2014-11-03 18:39     ` Radim Krčmář
2014-11-03 18:47       ` Wei Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox