Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 #
0003 # KVM configuration
0004 #
0005 
0006 source "virt/lib/Kconfig"
0007 source "virt/kvm/Kconfig"
0008 
0009 menuconfig VIRTUALIZATION
0010         bool "Virtualization"
0011         help
0012           Say Y here to get to see options for using your Linux host to run
0013           other operating systems inside virtual machines (guests).
0014           This option alone does not add any kernel code.
0015 
0016           If you say N, all options in this submenu will be skipped and
0017           disabled.
0018 
0019 if VIRTUALIZATION
0020 
0021 menuconfig KVM
0022         bool "Kernel-based Virtual Machine (KVM) support"
0023         depends on HAVE_KVM
0024         select MMU_NOTIFIER
0025         select PREEMPT_NOTIFIERS
0026         select HAVE_KVM_CPU_RELAX_INTERCEPT
0027         select HAVE_KVM_ARCH_TLB_FLUSH_ALL
0028         select KVM_MMIO
0029         select KVM_GENERIC_DIRTYLOG_READ_PROTECT
0030         select KVM_XFER_TO_GUEST_WORK
0031         select SRCU
0032         select KVM_VFIO
0033         select HAVE_KVM_EVENTFD
0034         select HAVE_KVM_IRQFD
0035         select HAVE_KVM_MSI
0036         select HAVE_KVM_IRQCHIP
0037         select HAVE_KVM_IRQ_ROUTING
0038         select IRQ_BYPASS_MANAGER
0039         select HAVE_KVM_IRQ_BYPASS
0040         select HAVE_KVM_VCPU_RUN_PID_CHANGE
0041         select SCHED_INFO
0042         select GUEST_PERF_EVENTS if PERF_EVENTS
0043         select INTERVAL_TREE
0044         help
0045           Support hosting virtualized guest machines.
0046 
0047           If unsure, say N.
0048 
0049 config NVHE_EL2_DEBUG
0050         bool "Debug mode for non-VHE EL2 object"
0051         depends on KVM
0052         help
0053           Say Y here to enable the debug mode for the non-VHE KVM EL2 object.
0054           Failure reports will BUG() in the hypervisor. This is intended for
0055           local EL2 hypervisor development.
0056 
0057           If unsure, say N.
0058 
0059 config PROTECTED_NVHE_STACKTRACE
0060         bool "Protected KVM hypervisor stacktraces"
0061         depends on NVHE_EL2_DEBUG
0062         default n
0063         help
0064           Say Y here to enable pKVM hypervisor stacktraces on hyp_panic()
0065 
0066           If using protected nVHE mode, but cannot afford the associated
0067           memory cost (less than 0.75 page per CPU) of pKVM stacktraces,
0068           say N.
0069 
0070           If unsure, or not using protected nVHE (pKVM), say N.
0071 
0072 endif # VIRTUALIZATION