xref: /openbmc/linux/arch/arm64/kvm/Kconfig (revision 8e7a49e0)
1# SPDX-License-Identifier: GPL-2.0
2#
3# KVM configuration
4#
5
6source "virt/lib/Kconfig"
7source "virt/kvm/Kconfig"
8
9menuconfig VIRTUALIZATION
10	bool "Virtualization"
11	help
12	  Say Y here to get to see options for using your Linux host to run
13	  other operating systems inside virtual machines (guests).
14	  This option alone does not add any kernel code.
15
16	  If you say N, all options in this submenu will be skipped and
17	  disabled.
18
19if VIRTUALIZATION
20
21menuconfig KVM
22	bool "Kernel-based Virtual Machine (KVM) support"
23	depends on HAVE_KVM
24	select KVM_GENERIC_HARDWARE_ENABLING
25	select MMU_NOTIFIER
26	select PREEMPT_NOTIFIERS
27	select HAVE_KVM_CPU_RELAX_INTERCEPT
28	select HAVE_KVM_ARCH_TLB_FLUSH_ALL
29	select KVM_MMIO
30	select KVM_GENERIC_DIRTYLOG_READ_PROTECT
31	select KVM_XFER_TO_GUEST_WORK
32	select SRCU
33	select KVM_VFIO
34	select HAVE_KVM_EVENTFD
35	select HAVE_KVM_IRQFD
36	select HAVE_KVM_DIRTY_RING_ACQ_REL
37	select NEED_KVM_DIRTY_RING_WITH_BITMAP
38	select HAVE_KVM_MSI
39	select HAVE_KVM_IRQCHIP
40	select HAVE_KVM_IRQ_ROUTING
41	select IRQ_BYPASS_MANAGER
42	select HAVE_KVM_IRQ_BYPASS
43	select HAVE_KVM_VCPU_RUN_PID_CHANGE
44	select SCHED_INFO
45	select GUEST_PERF_EVENTS if PERF_EVENTS
46	select INTERVAL_TREE
47	help
48	  Support hosting virtualized guest machines.
49
50	  If unsure, say N.
51
52config NVHE_EL2_DEBUG
53	bool "Debug mode for non-VHE EL2 object"
54	depends on KVM
55	help
56	  Say Y here to enable the debug mode for the non-VHE KVM EL2 object.
57	  Failure reports will BUG() in the hypervisor. This is intended for
58	  local EL2 hypervisor development.
59
60	  If unsure, say N.
61
62config PROTECTED_NVHE_STACKTRACE
63	bool "Protected KVM hypervisor stacktraces"
64	depends on NVHE_EL2_DEBUG
65	default n
66	help
67	  Say Y here to enable pKVM hypervisor stacktraces on hyp_panic()
68
69	  If using protected nVHE mode, but cannot afford the associated
70	  memory cost (less than 0.75 page per CPU) of pKVM stacktraces,
71	  say N.
72
73	  If unsure, or not using protected nVHE (pKVM), say N.
74
75endif # VIRTUALIZATION
76