[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221114095606.39785-1-likexu@tencent.com>
Date: Mon, 14 Nov 2022 17:55:52 +0800
From: Like Xu <like.xu.linux@...il.com>
To: Sean Christopherson <seanjc@...gle.com>,
Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [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/20221110010354.1342128-1-seanjc@google.com/
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(-)
--
2.38.1
Powered by blists - more mailing lists