Skip to content

KVM: x86: Remove unnecessary exported symbols

Like Xu kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14KVM: x86: Remove unnecessary export of kvm_cpu_has_pending_timer()arch/x86/kvm/irq.c+0 -10 replies
2/14KVM: x86: Remove unnecessary export of kvm_inject_pending_timer_irqs()arch/x86/kvm/irq.c+0 -10 replies
3/14KVM: x86: Remove unnecessary export of kvm_get_apic_base()arch/x86/kvm/x86.c+0 -10 replies
4/14KVM: x86: Remove unnecessary export of kvm_set_apic_base()arch/x86/kvm/x86.c+0 -10 replies
5/14KVM: x86: Remove unnecessary export of kvm_inject_page_fault()arch/x86/kvm/x86.c arch/x86/kvm/x86.h+1 -12 replies
6/14KVM: x86: Remove unnecessary export of kvm_inject_nmi()arch/x86/kvm/x86.c arch/x86/kvm/x86.h+1 -11 reply
7/14KVM: x86: Remove unnecessary export of kvm_require_cpl()arch/x86/kvm/x86.c+0 -10 replies
8/14KVM: x86: Remove unnecessary export of kvm_emulate_as_nop()arch/x86/kvm/x86.c+0 -10 replies
9/14KVM: x86: Remove unnecessary export of kvm_scale_tsc()arch/x86/kvm/x86.c+0 -10 replies
10/14KVM: x86: Remove unnecessary export of kvm_vcpu_is_reset_bsp()arch/x86/kvm/x86.c+5 -62 replies
11/14KVM: x86: Remove unnecessary export of kvm_hv_assist_page_enabled()arch/x86/kvm/hyperv.c+0 -10 replies
12/14KVM: x86: Remove unnecessary export of kvm_can_use_hv_timer()arch/x86/kvm/lapic.c+0 -10 replies
13/14KVM: x86: Remove unnecessary export of kvm_lapic_hv_timer_in_use()arch/x86/kvm/lapic.c+0 -10 replies
14/14KVM: x86: Remove unnecessary export of kvm_apic_update_apicv()arch/x86/kvm/lapic.c+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/14] KVM: x86: Remove unnecessary exported symbols

Inspired by the Sean's minor fix [1], more unnecessary (from a GPL developer's perspective) exported symbols could be cleaned up (automation to find out true positives is possible). This move helps reduce the attack surface of KVM modules and guides more developers to practice the principle of low coupling in the KVM context.

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

Like Xu (13):
KVM: x86: Remove unnecessary export of kvm_inject_pending_timer_irqs()
KVM: x86: Remove unnecessary export of kvm_get_apic_base()
KVM: x86: Remove unnecessary export of kvm_set_apic_base()
KVM: x86: Remove unnecessary export of kvm_inject_page_fault()
KVM: x86: Remove unnecessary export of kvm_inject_nmi()
KVM: x86: Remove unnecessary export of kvm_require_cpl()
KVM: x86: Remove unnecessary export of kvm_emulate_as_nop()
KVM: x86: Remove unnecessary export of kvm_scale_tsc()
KVM: x86: Remove unnecessary export of kvm_vcpu_is_reset_bsp()
KVM: x86: Remove unnecessary export of kvm_hv_assist_page_enabled()
KVM: x86: Remove unnecessary export of kvm_can_use_hv_timer()
KVM: x86: Remove unnecessary export of kvm_lapic_hv_timer_in_use()
KVM: x86: Remove unnecessary export of kvm_apic_update_apicv()

Sean Christopherson (1):
KVM: x86: Remove unnecessary export of kvm_cpu_has_pending_timer()

 arch/x86/kvm/hyperv.c |  1 -
 arch/x86/kvm/irq.c    |  2 --
 arch/x86/kvm/lapic.c  |  3 ---
 arch/x86/kvm/x86.c    | 18 +++++-------------
 arch/x86/kvm/x86.h    |  2 ++
 5 files changed, 7 insertions(+), 19 deletions(-)
Signature · 1 line
2.38.1