Skip to content

Commit 6560468

Browse files
sean-jcbonzini
authored andcommitted
KVM: x86: Drop pointless exports of kvm_arch_xxx() hooks
Drop the exporting of several kvm_arch_xxx() hooks that are only called from arch-neutral code, i.e. that are only called from kvm.ko. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent d273b52 commit 6560468

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/x86/kvm/x86.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13922,14 +13922,12 @@ void kvm_arch_register_noncoherent_dma(struct kvm *kvm)
1392213922
if (atomic_inc_return(&kvm->arch.noncoherent_dma_count) == 1)
1392313923
kvm_noncoherent_dma_assignment_start_or_stop(kvm);
1392413924
}
13925-
EXPORT_SYMBOL_GPL(kvm_arch_register_noncoherent_dma);
1392613925

1392713926
void kvm_arch_unregister_noncoherent_dma(struct kvm *kvm)
1392813927
{
1392913928
if (!atomic_dec_return(&kvm->arch.noncoherent_dma_count))
1393013929
kvm_noncoherent_dma_assignment_start_or_stop(kvm);
1393113930
}
13932-
EXPORT_SYMBOL_GPL(kvm_arch_unregister_noncoherent_dma);
1393313931

1393413932
bool kvm_arch_has_noncoherent_dma(struct kvm *kvm)
1393513933
{
@@ -13941,7 +13939,6 @@ bool kvm_arch_no_poll(struct kvm_vcpu *vcpu)
1394113939
{
1394213940
return (vcpu->arch.msr_kvm_poll_control & 1) == 0;
1394313941
}
13944-
EXPORT_SYMBOL_GPL(kvm_arch_no_poll);
1394513942

1394613943
#ifdef CONFIG_KVM_GUEST_MEMFD
1394713944
/*

0 commit comments

Comments
 (0)