Skip to content

KVM: x86: Use static calls to reduce kvm_pmu_ops overhead

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: x86: Move kvm_ops_static_call_update() to x86.carch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+17 -160 replies
2/4KVM: x86: Copy kvm_pmu_ops by value to eliminate layer of indirectionarch/x86/kvm/pmu.c arch/x86/kvm/pmu.h arch/x86/kvm/x86.c+37 -260 replies
3/4KVM: x86: Move .pmu_ops to kvm_x86_init_ops and tag as __initdataarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/pmu.c arch/x86/kvm/svm/svm.c +3 more+6 -70 replies
4/4KVM: x86: Use static calls to reduce kvm_pmu_ops overheadarch/x86/include/asm/kvm-x86-pmu-ops.h arch/x86/kvm/pmu.c+65 -220 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchSean Christopherson
1/4
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v3.1 0/4] KVM: x86: Use static calls to reduce kvm_pmu_ops overhead

This is a minor iteration on Like's v3 to allow kvm_pmu_ops (the global variable, not the struct) be static. I ran the PMU unit tests and compiled, but otherwise it's untested. Strongly recommend waiting for Like to give a thumbs up before applying :-)

[*] https://lore.kernel.org/all/[email protected]

Like Xu (4):
KVM: x86: Move kvm_ops_static_call_update() to x86.c
KVM: x86: Copy kvm_pmu_ops by value to eliminate layer of indirection
KVM: x86: Move .pmu_ops to kvm_x86_init_ops and tag as __initdata
KVM: x86: Use static calls to reduce kvm_pmu_ops overhead

 arch/x86/include/asm/kvm-x86-pmu-ops.h | 31 ++++++++++++
 arch/x86/include/asm/kvm_host.h        | 17 +------
 arch/x86/kvm/pmu.c                     | 66 ++++++++++++++++++--------
 arch/x86/kvm/pmu.h                     |  7 +--
 arch/x86/kvm/svm/pmu.c                 |  2 +-
 arch/x86/kvm/svm/svm.c                 |  2 +-
 arch/x86/kvm/vmx/pmu_intel.c           |  2 +-
 arch/x86/kvm/vmx/vmx.c                 |  2 +-
 arch/x86/kvm/x86.c                     | 21 +++++++-
 9 files changed, 102 insertions(+), 48 deletions(-)
 create mode 100644 arch/x86/include/asm/kvm-x86-pmu-ops.h

base-commit: 19164ad08bf668bca4f4bfbaacaa0a47c1b737a6

Signature · 1 line
2.35.1.1021.g381101b075-goog