From: Wei Huang <wei@redhat.com>
To: kvm@vger.kernel.org
Cc: pbonzini@redhat.com, rkrcmar@redhat.com, gleb@kernel.org
Subject: Re: [PATCH V2 0/5] KVM vPMU support for AMD
Date: Wed, 08 Apr 2015 11:22:46 -0500 [thread overview]
Message-ID: <552555D6.5050309@redhat.com> (raw)
In-Reply-To: <1428509905-32352-1-git-send-email-wei@redhat.com>
Hi Radim: This version should address most of your comments to V1.
Please help to review it.
Hi Paolo: This version has been polished since V1. Could you please
review it?
Thanks,
-Wei
On 04/08/2015 11:18 AM, Wei Huang wrote:
> 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.
>
> V2:
> * Create a generic pmu.c file which is shared by Intel and AMD CPUs;
> * pmu.c code becomes part of kvm.ko module. Similarly pmu_intel.c and
> pmu_amd.c are linked to kvm-intel.ko and kvm-amd.ko respectively;
> * Re-define kvm_pmu_ops function pointers. Per Radim Krcmar's comments,
> a large portion of Intel vPMU code are now consolidated and moved to
> pmu.c;
> * Polish pmu_amd.c code to comply with new definition of kvm_pmu_ops;
>
> V1:
> * Adopt the file layout suggested by Radim Krcmar
> * Link arch module with its specific PMU file
>
> RFC:
> * Initial version for RFC
>
> Wei Huang (5):
> KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch
> KVM: x86/vPMU: Rename pmu.c file to pmu_intel.c
> KVM: x86/vPMU: Create vPMU interface for VMX and SVM
> KVM: x86/vPMU: Implement vPMU code AMD CPUs
> KVM: x86/vPMU: Enable PMU handling for AMD PERFCTRn and EVNTSELn MSRs
>
> arch/x86/include/asm/kvm_host.h | 38 ++-
> arch/x86/kvm/Makefile | 4 +-
> arch/x86/kvm/cpuid.c | 3 +-
> arch/x86/kvm/pmu.c | 563 +++++++++++-----------------------------
> arch/x86/kvm/pmu.h | 98 +++++++
> arch/x86/kvm/pmu_amd.c | 198 ++++++++++++++
> arch/x86/kvm/pmu_intel.c | 360 +++++++++++++++++++++++++
> arch/x86/kvm/svm.c | 8 +
> arch/x86/kvm/vmx.c | 8 +
> arch/x86/kvm/x86.c | 57 ++--
> 10 files changed, 896 insertions(+), 441 deletions(-)
> create mode 100644 arch/x86/kvm/pmu.h
> create mode 100644 arch/x86/kvm/pmu_amd.c
> create mode 100644 arch/x86/kvm/pmu_intel.c
>
next prev parent reply other threads:[~2015-04-08 16:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 16:18 [PATCH V2 0/5] KVM vPMU support for AMD Wei Huang
2015-04-08 16:18 ` [PATCH V2 1/5] KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch Wei Huang
2015-04-08 16:18 ` [PATCH V2 2/5] KVM: x86/vPMU: Rename pmu.c file to pmu_intel.c Wei Huang
2015-04-09 19:10 ` Radim Krčmář
2015-04-09 19:23 ` Wei Huang
2015-04-08 16:18 ` [PATCH V2 3/5] KVM: x86/vPMU: Create vPMU interface for VMX and SVM Wei Huang
2015-04-09 19:43 ` Radim Krčmář
2015-04-09 20:03 ` Wei Huang
2015-04-09 20:54 ` Radim Krčmář
2015-04-09 21:08 ` Wei Huang
2015-04-10 12:53 ` Radim Krčmář
2015-04-20 18:33 ` Wei Huang
2015-04-21 9:33 ` Radim Krčmář
2015-04-10 12:57 ` Radim Krčmář
2015-04-08 16:18 ` [PATCH V2 4/5] KVM: x86/vPMU: Implement vPMU code AMD CPUs Wei Huang
2015-04-08 16:18 ` [PATCH V2 5/5] KVM: x86/vPMU: Enable PMU handling for AMD PERFCTRn and EVNTSELn MSRs Wei Huang
2015-04-08 16:22 ` Wei Huang [this message]
2015-04-09 19:05 ` [PATCH V2 0/5] KVM vPMU support for AMD Radim Krčmář
2015-04-09 19:19 ` Wei Huang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552555D6.5050309@redhat.com \
--to=wei@redhat.com \
--cc=gleb@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox