2020-05-29 07:48:27

by Like Xu

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

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/[email protected]/

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


2020-05-29 08:50:24

by Paolo Bonzini

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

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.
>
> Previous:
> https://lore.kernel.org/kvm/[email protected]/
>
> 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(-)
>

Thanks, I was busy with AMD stuff as you saw. :) I've queued it now.

Paolo

2020-05-29 08:55:30

by Xu, Like

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

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.
>>
>> Previous:
>> https://lore.kernel.org/kvm/[email protected]/
>>
>> 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(-)
>>
> 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

https://lore.kernel.org/kvm/[email protected]/

Thanks,
Like Xu
>
> Paolo
>