Re: [PATCH RESEND] Enable full width counting for KVM: x86/pmu

From: Xu, Like
Date: Fri May 29 2020 - 04:52:41 EST

On 2020/5/29 16:47, Paolo Bonzini wrote:
On 29/05/20 09:43, Like Xu wrote:
Hi Paolo,

As you said, you will queue the v3 of KVM patch, but it looks like we
are missing that part at the top of the kvm/queue tree.

For your convenience, let me resend v4 so that we can upstream this
feature in the next merged window. Also this patch series includes
patches for qemu and kvm-unit-tests. Please help review.


Like Xu (1):
KVM: x86/pmu: Support full width counting
[kvm-unit-tests] x86: pmu: Test full-width counter writes
[Qemu-devel] target/i386: define a new MSR based feature

Wei Wang (1):
KVM: x86/pmu: Tweak kvm_pmu_get_msr to pass 'struct msr_data' in

arch/x86/include/asm/kvm_host.h | 1 +
arch/x86/kvm/cpuid.c | 2 +-
arch/x86/kvm/pmu.c | 4 +-
arch/x86/kvm/pmu.h | 4 +-
arch/x86/kvm/svm/pmu.c | 7 ++--
arch/x86/kvm/vmx/capabilities.h | 11 +++++
arch/x86/kvm/vmx/pmu_intel.c | 71 +++++++++++++++++++++++++++------
arch/x86/kvm/vmx/vmx.c | 3 ++
arch/x86/kvm/x86.c | 6 ++-
9 files changed, 87 insertions(+), 22 deletions(-)

Thanks, I was busy with AMD stuff as you saw. :) I've queued it now.
Yes, we all know you're busy.

I will be very grateful if you could comment the KVM part for the LBR feature. :D

Like Xu