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