-
- Downloads
KVM: Convert KVM_ARCH_WANT_MMU_NOTIFIER to CONFIG_KVM_GENERIC_MMU_NOTIFIER
Convert KVM_ARCH_WANT_MMU_NOTIFIER into a Kconfig and select it where appropriate to effectively maintain existing behavior. Using a proper Kconfig will simplify building more functionality on top of KVM's mmu_notifier infrastructure. Add a forward declaration of kvm_gfn_range to kvm_types.h so that including arch/powerpc/include/asm/kvm_ppc.h's with CONFIG_KVM=n doesn't generate warnings due to kvm_gfn_range being undeclared. PPC defines hooks for PR vs. HV without guarding them via #ifdeffery, e.g. bool (*unmap_gfn_range)(struct kvm *kvm, struct kvm_gfn_range *range); bool (*age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range); bool (*test_age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range); bool (*set_spte_gfn)(struct kvm *kvm, struct kvm_gfn_range *range); Alternatively, PPC could forward declare kvm_gfn_range, but there's no good reason not to define it in common KVM. Acked-by:Anup Patel <anup@brainfault.org> Signed-off-by:
Sean Christopherson <seanjc@google.com> Reviewed-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Fuad Tabba <tabba@google.com> Tested-by:
Fuad Tabba <tabba@google.com> Message-Id: <20231027182217.3615211-8-seanjc@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/arm64/include/asm/kvm_host.h 0 additions, 2 deletionsarch/arm64/include/asm/kvm_host.h
- arch/arm64/kvm/Kconfig 1 addition, 1 deletionarch/arm64/kvm/Kconfig
- arch/loongarch/include/asm/kvm_host.h 0 additions, 1 deletionarch/loongarch/include/asm/kvm_host.h
- arch/loongarch/kvm/Kconfig 1 addition, 1 deletionarch/loongarch/kvm/Kconfig
- arch/mips/include/asm/kvm_host.h 0 additions, 2 deletionsarch/mips/include/asm/kvm_host.h
- arch/mips/kvm/Kconfig 1 addition, 1 deletionarch/mips/kvm/Kconfig
- arch/powerpc/include/asm/kvm_host.h 0 additions, 2 deletionsarch/powerpc/include/asm/kvm_host.h
- arch/powerpc/kvm/Kconfig 4 additions, 4 deletionsarch/powerpc/kvm/Kconfig
- arch/powerpc/kvm/powerpc.c 1 addition, 3 deletionsarch/powerpc/kvm/powerpc.c
- arch/riscv/include/asm/kvm_host.h 0 additions, 2 deletionsarch/riscv/include/asm/kvm_host.h
- arch/riscv/kvm/Kconfig 1 addition, 1 deletionarch/riscv/kvm/Kconfig
- arch/x86/include/asm/kvm_host.h 0 additions, 2 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/Kconfig 1 addition, 1 deletionarch/x86/kvm/Kconfig
- include/linux/kvm_host.h 3 additions, 3 deletionsinclude/linux/kvm_host.h
- include/linux/kvm_types.h 1 addition, 0 deletionsinclude/linux/kvm_types.h
- virt/kvm/Kconfig 4 additions, 0 deletionsvirt/kvm/Kconfig
- virt/kvm/kvm_main.c 5 additions, 5 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment