mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
8886640dad
KVM uses __KVM_HAVE_* symbols in the architecture-dependent uapi/asm/kvm.h to mask unused definitions in include/uapi/linux/kvm.h. __KVM_HAVE_READONLY_MEM however was nothing but a misguided attempt to define KVM_CAP_READONLY_MEM only on architectures where KVM_CHECK_EXTENSION(KVM_CAP_READONLY_MEM) could possibly return nonzero. This however does not make sense, and it prevented userspace from supporting this architecture-independent feature without recompilation. Therefore, these days __KVM_HAVE_READONLY_MEM does not mask anything and is only used in virt/kvm/kvm_main.c. Userspace does not need to test it and there should be no need for it to exist. Remove it and replace it with a Kconfig symbol within Linux source code. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
41 lines
969 B
Plaintext
41 lines
969 B
Plaintext
# 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
|
|
select HAVE_KVM_IRQCHIP
|
|
select HAVE_KVM_IRQ_ROUTING
|
|
select HAVE_KVM_MSI
|
|
select HAVE_KVM_VCPU_ASYNC_IOCTL
|
|
select HAVE_KVM_READONLY_MEM
|
|
select KVM_COMMON
|
|
select KVM_GENERIC_DIRTYLOG_READ_PROTECT
|
|
select KVM_GENERIC_HARDWARE_ENABLING
|
|
select KVM_MMIO
|
|
select KVM_XFER_TO_GUEST_WORK
|
|
select KVM_GENERIC_MMU_NOTIFIER
|
|
select SCHED_INFO
|
|
help
|
|
Support hosting virtualized guest machines.
|
|
|
|
If unsure, say N.
|
|
|
|
endif # VIRTUALIZATION
|