2021-09-27 19:40:01 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
#
|
|
|
|
# KVM configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
source "virt/kvm/Kconfig"
|
|
|
|
|
|
|
|
menuconfig VIRTUALIZATION
|
|
|
|
bool "Virtualization"
|
|
|
|
help
|
|
|
|
Say Y here to get to see options for using your Linux host to run
|
|
|
|
other operating systems inside virtual machines (guests).
|
|
|
|
This option alone does not add any kernel code.
|
|
|
|
|
|
|
|
If you say N, all options in this submenu will be skipped and
|
|
|
|
disabled.
|
|
|
|
|
|
|
|
if VIRTUALIZATION
|
|
|
|
|
|
|
|
config KVM
|
|
|
|
tristate "Kernel-based Virtual Machine (KVM) support (EXPERIMENTAL)"
|
|
|
|
depends on RISCV_SBI && MMU
|
2023-06-15 15:33:48 +08:00
|
|
|
select HAVE_KVM_IRQCHIP
|
|
|
|
select HAVE_KVM_IRQ_ROUTING
|
|
|
|
select HAVE_KVM_MSI
|
2023-03-23 03:28:57 +08:00
|
|
|
select HAVE_KVM_VCPU_ASYNC_IOCTL
|
2024-01-11 16:00:34 +08:00
|
|
|
select HAVE_KVM_READONLY_MEM
|
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: 8132d887a702 ("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-05 00:15:07 +08:00
|
|
|
select KVM_COMMON
|
2023-03-23 03:28:57 +08:00
|
|
|
select KVM_GENERIC_DIRTYLOG_READ_PROTECT
|
2022-12-01 07:09:33 +08:00
|
|
|
select KVM_GENERIC_HARDWARE_ENABLING
|
2021-09-27 19:40:01 +08:00
|
|
|
select KVM_MMIO
|
2022-10-02 12:49:25 +08:00
|
|
|
select KVM_XFER_TO_GUEST_WORK
|
2023-10-28 02:21:49 +08:00
|
|
|
select KVM_GENERIC_MMU_NOTIFIER
|
2023-12-21 00:00:22 +08:00
|
|
|
select SCHED_INFO
|
2021-09-27 19:40:01 +08:00
|
|
|
help
|
|
|
|
Support hosting virtualized guest machines.
|
|
|
|
|
|
|
|
If unsure, say N.
|
|
|
|
|
|
|
|
endif # VIRTUALIZATION
|