Skip to content

Commit fdde13c

Browse files
sean-jcbonzini
authored andcommitted
KVM: Remove unnecessary export of kvm_{inc,dec}_notifier_count()
Don't export KVM's MMU notifier count helpers, under no circumstance should any downstream module, including x86's vendor code, have a legitimate reason to piggyback KVM's MMU notifier logic. E.g in the x86 case, only KVM's MMU should be elevating the notifier count, and that code is always built into the core kvm.ko module. Fixes: edb298c ("KVM: x86/mmu: bump mmu notifier count in kvm_zap_gfn_range") Cc: Maxim Levitsky <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: Maxim Levitsky <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 1148bfc commit fdde13c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

virt/kvm/kvm_main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,6 @@ void kvm_inc_notifier_count(struct kvm *kvm, unsigned long start,
638638
max(kvm->mmu_notifier_range_end, end);
639639
}
640640
}
641-
EXPORT_SYMBOL_GPL(kvm_inc_notifier_count);
642641

643642
static int kvm_mmu_notifier_invalidate_range_start(struct mmu_notifier *mn,
644643
const struct mmu_notifier_range *range)
@@ -690,8 +689,6 @@ void kvm_dec_notifier_count(struct kvm *kvm, unsigned long start,
690689
*/
691690
kvm->mmu_notifier_count--;
692691
}
693-
EXPORT_SYMBOL_GPL(kvm_dec_notifier_count);
694-
695692

696693
static void kvm_mmu_notifier_invalidate_range_end(struct mmu_notifier *mn,
697694
const struct mmu_notifier_range *range)

0 commit comments

Comments
 (0)