]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Remove unnecessary export of kvm_{inc,dec}_notifier_count()
authorSean Christopherson <seanjc@google.com>
Thu, 2 Sep 2021 17:59:51 +0000 (10:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Sep 2021 10:21:29 +0000 (06:21 -0400)
commit2b2d85125ed8ae67e43bdc9cdb808a8d9ec5ac2f
tree7162d817c5cf7cf8c5bf9be54654bdc1167b52fb
parentb5efeb850a2bfb9d134d1ee0c07e35b8072b600d
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: f076dd1d15e8 ("KVM: x86/mmu: bump mmu notifier count in kvm_zap_gfn_range")
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210902175951.1387989-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c