linux-stable/arch/loongarch/kvm
Paolo Bonzini caadf876bb KVM: introduce CONFIG_KVM_COMMON
CONFIG_HAVE_KVM is currently used by some architectures to either
enabled the KVM config proper, or to enable host-side code that is
not part of the KVM module.  However, CONFIG_KVM's "select" statement
in virt/kvm/Kconfig corresponds to a third meaning, namely to
enable common Kconfigs required by all architectures that support
KVM.

These three meanings can be replaced respectively by an
architecture-specific Kconfig, by IS_ENABLED(CONFIG_KVM), or by
a new Kconfig symbol that is in turn selected by the
architecture-specific "config KVM".

Start by introducing such a new Kconfig symbol, CONFIG_KVM_COMMON.
Unlike CONFIG_HAVE_KVM, it is selected by CONFIG_KVM, not by
architecture code, and it brings in all dependencies of common
KVM code.  In particular, INTERVAL_TREE was missing in loongarch
and riscv, so that is another thing that is fixed.

Fixes: 8132d887a7 ("KVM: remove CONFIG_HAVE_KVM_EVENTFD", 2023-12-08)
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/all/44907c6b-c5bd-4e4a-a921-e4d3825539d8@infradead.org/
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-01-08 08:09:38 -05:00
..
Kconfig KVM: introduce CONFIG_KVM_COMMON 2024-01-08 08:09:38 -05:00
Makefile LoongArch: KVM: Enable kvm config and add the makefile 2023-10-02 10:01:29 +08:00
exit.c LoongArch: KVM: Add LASX (256bit SIMD) support 2023-12-19 10:48:28 +08:00
interrupt.c LoongArch: KVM: Implement vcpu interrupt operations 2023-10-02 10:01:28 +08:00
main.c LoongArch: KVM: Allow to access HW timer CSR registers always 2023-12-19 10:48:27 +08:00
mmu.c LoongArch: KVM: Optimization for memslot hugepage checking 2023-12-19 10:48:27 +08:00
switch.S LoongArch: KVM: Add LASX (256bit SIMD) support 2023-12-19 10:48:28 +08:00
timer.c LoongArch: KVM: Fix timer emulation with oneshot mode 2023-12-19 10:48:28 +08:00
tlb.c LoongArch: KVM: Implement virtual machine tlb operations 2023-10-02 10:01:28 +08:00
trace.h LoongArch: KVM: Add LASX (256bit SIMD) support 2023-12-19 10:48:28 +08:00
vcpu.c LoongArch: KVM: Add LASX (256bit SIMD) support 2023-12-19 10:48:28 +08:00
vm.c LoongArch: KVM: Implement VM related functions 2023-10-02 10:01:27 +08:00