lkml.org 
[lkml]   [2021]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] Use static_call for kvm_pmu_ops
Date
Hi,

This is a successor to a previous patch set from Jason Baron. Let's convert
kvm_pmu_ops to use static_call. Shows good performance gains for
a typical perf use case [2] in the guest (results in patch 3/3).

[1] https://lore.kernel.org/lkml/cover.1610680941.git.jbaron@akamai.com/
[2] perf record -e branch-instructions -e branch-misses \
-e cache-misses -e cache-references -e cpu-cycles \
-e instructions ./workload

Thanks,

Like Xu (3):
KVM: x86: Copy kvm_pmu_ops by value to eliminate layer of indirection
KVM: x86: Introduce definitions to support static calls for
kvm_pmu_ops
KVM: x86: Use static calls to reduce kvm_pmu_ops overhead

arch/x86/include/asm/kvm-x86-pmu-ops.h | 32 ++++++++++++++++++
arch/x86/kvm/pmu.c | 46 +++++++++++++++-----------
arch/x86/kvm/pmu.h | 19 ++++++++++-
arch/x86/kvm/vmx/nested.c | 2 +-
arch/x86/kvm/x86.c | 5 +++
5 files changed, 83 insertions(+), 21 deletions(-)
create mode 100644 arch/x86/include/asm/kvm-x86-pmu-ops.h

--
2.33.0

\
 
 \ /
  Last update: 2021-11-03 08:03    [W:0.184 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site