[PATCH v2 0/2] KVM: require generic MMU notifier implementation
From: Paolo Bonzini
Date: Fri Feb 13 2026 - 11:47:01 EST
With s390's switch to MMU notifier, all architectures select
CONFIG_KVM_GENERIC_MMU_NOTIFIER and define KVM_CAP_SYNC_MMU,
so remove the possibility to _not_ have them.
The only intricate Kconfig-ery is powerpc's, but there is
a nice pre-existing BUILD_BUG_ON to tell us that it *does*
in fact require CONFIG_KVM_GENERIC_MMU_NOTIFIER.
Paolo
v1->v2: do select MMU_NOTIFIER
Paolo Bonzini (2):
KVM: remove CONFIG_KVM_GENERIC_MMU_NOTIFIER
KVM: always define KVM_CAP_SYNC_MMU
Documentation/virt/kvm/api.rst | 10 ++++------
arch/arm64/kvm/Kconfig | 1 -
arch/arm64/kvm/arm.c | 1 -
arch/loongarch/kvm/Kconfig | 1 -
arch/loongarch/kvm/vm.c | 1 -
arch/mips/kvm/Kconfig | 1 -
arch/mips/kvm/mips.c | 1 -
arch/powerpc/kvm/Kconfig | 4 ----
arch/powerpc/kvm/powerpc.c | 6 ------
arch/riscv/kvm/Kconfig | 1 -
arch/riscv/kvm/vm.c | 1 -
arch/s390/kvm/Kconfig | 2 --
arch/s390/kvm/kvm-s390.c | 1 -
arch/x86/kvm/Kconfig | 1 -
arch/x86/kvm/x86.c | 1 -
include/linux/kvm_host.h | 7 +------
virt/kvm/Kconfig | 9 +--------
virt/kvm/kvm_main.c | 17 +----------------
18 files changed, 7 insertions(+), 59 deletions(-)
--
2.52.0