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

From: Like Xu
Date: Fri May 29 2020 - 03:44:25 EST


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.

Previous:
https://lore.kernel.org/kvm/f1c77c79-7ff8-c5f3-e011-9874a4336217@xxxxxxxxxx/

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
word - FEAT_PERF_CAPABILITIES

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(-)

--
2.21.3