xref: /linux/drivers/hv/Kconfig (revision ab93e0dd72c37d378dd936f031ffb83ff2bd87ce)
1# SPDX-License-Identifier: GPL-2.0
2
3menu "Microsoft Hyper-V guest support"
4
5config HYPERV
6	tristate "Microsoft Hyper-V client drivers"
7	depends on (X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \
8		|| (ARM64 && !CPU_BIG_ENDIAN)
9	select PARAVIRT
10	select X86_HV_CALLBACK_VECTOR if X86
11	select OF_EARLY_FLATTREE if OF
12	select SYSFB if EFI && !HYPERV_VTL_MODE
13	help
14	  Select this option to run Linux as a Hyper-V client operating
15	  system.
16
17config HYPERV_VTL_MODE
18	bool "Enable Linux to boot in VTL context"
19	depends on (X86_64 || ARM64) && HYPERV
20	depends on SMP
21	default n
22	help
23	  Virtual Secure Mode (VSM) is a set of hypervisor capabilities and
24	  enlightenments offered to host and guest partitions which enables
25	  the creation and management of new security boundaries within
26	  operating system software.
27
28	  VSM achieves and maintains isolation through Virtual Trust Levels
29	  (VTLs). Virtual Trust Levels are hierarchical, with higher levels
30	  being more privileged than lower levels. VTL0 is the least privileged
31	  level, and currently only other level supported is VTL2.
32
33	  Select this option to build a Linux kernel to run at a VTL other than
34	  the normal VTL0, which currently is only VTL2.  This option
35	  initializes the kernel to run in VTL2, and adds the ability to boot
36	  secondary CPUs directly into 64-bit context as required for VTLs other
37	  than 0.  A kernel built with this option must run at VTL2, and will
38	  not run as a normal guest.
39
40	  If unsure, say N
41
42config HYPERV_TIMER
43	def_bool HYPERV && X86
44
45config HYPERV_UTILS
46	tristate "Microsoft Hyper-V Utilities driver"
47	depends on HYPERV && CONNECTOR && NLS
48	depends on PTP_1588_CLOCK_OPTIONAL
49	help
50	  Select this option to enable the Hyper-V Utilities.
51
52config HYPERV_BALLOON
53	tristate "Microsoft Hyper-V Balloon driver"
54	depends on HYPERV
55	select PAGE_REPORTING
56	help
57	  Select this option to enable Hyper-V Balloon driver.
58
59config MSHV_ROOT
60	tristate "Microsoft Hyper-V root partition support"
61	depends on HYPERV && (X86_64 || ARM64)
62	depends on !HYPERV_VTL_MODE
63	# The hypervisor interface operates on 4k pages. Enforcing it here
64	# simplifies many assumptions in the root partition code.
65	# e.g. When withdrawing memory, the hypervisor gives back 4k pages in
66	# no particular order, making it impossible to reassemble larger pages
67	depends on PAGE_SIZE_4KB
68	select EVENTFD
69	default n
70	help
71	  Select this option to enable support for booting and running as root
72	  partition on Microsoft Hyper-V.
73
74	  If unsure, say N.
75
76endmenu
77