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 && HAVE_STATIC_CALL) || ARM64 21 depends on HYPERV 22 depends on SMP 23 default n 24 help 25 Virtual Secure Mode (VSM) is a set of hypervisor capabilities and 26 enlightenments offered to host and guest partitions which enables 27 the creation and management of new security boundaries within 28 operating system software. 29 30 VSM achieves and maintains isolation through Virtual Trust Levels 31 (VTLs). Virtual Trust Levels are hierarchical, with higher levels 32 being more privileged than lower levels. VTL0 is the least privileged 33 level, and currently only other level supported is VTL2. 34 35 Select this option to build a Linux kernel to run at a VTL other than 36 the normal VTL0, which currently is only VTL2. This option 37 initializes the kernel to run in VTL2, and adds the ability to boot 38 secondary CPUs directly into 64-bit context as required for VTLs other 39 than 0. A kernel built with this option must run at VTL2, and will 40 not run as a normal guest. 41 42 If unsure, say N 43 44config HYPERV_TIMER 45 def_bool HYPERV && X86 46 47config HYPERV_UTILS 48 tristate "Microsoft Hyper-V Utilities driver" 49 depends on HYPERV_VMBUS && CONNECTOR && NLS 50 depends on PTP_1588_CLOCK_OPTIONAL 51 help 52 Select this option to enable the Hyper-V Utilities. 53 54config HYPERV_BALLOON 55 tristate "Microsoft Hyper-V Balloon driver" 56 depends on HYPERV_VMBUS 57 select PAGE_REPORTING 58 help 59 Select this option to enable Hyper-V Balloon driver. 60 61config HYPERV_VMBUS 62 tristate "Microsoft Hyper-V VMBus driver" 63 depends on HYPERV 64 default HYPERV 65 help 66 Select this option to enable Hyper-V Vmbus driver. 67 68config MSHV_ROOT 69 tristate "Microsoft Hyper-V root partition support" 70 depends on HYPERV && (X86_64 || ARM64) 71 depends on !HYPERV_VTL_MODE 72 # The hypervisor interface operates on 4k pages. Enforcing it here 73 # simplifies many assumptions in the root partition code. 74 # e.g. When withdrawing memory, the hypervisor gives back 4k pages in 75 # no particular order, making it impossible to reassemble larger pages 76 depends on PAGE_SIZE_4KB 77 select EVENTFD 78 select VIRT_XFER_TO_GUEST_WORK 79 default n 80 help 81 Select this option to enable support for booting and running as root 82 partition on Microsoft Hyper-V. 83 84 If unsure, say N. 85 86config MSHV_VTL 87 tristate "Microsoft Hyper-V VTL driver" 88 depends on X86_64 && HYPERV_VTL_MODE 89 depends on HYPERV_VMBUS 90 # Mapping VTL0 memory to a userspace process in VTL2 is supported in OpenHCL. 91 # VTL2 for OpenHCL makes use of Huge Pages to improve performance on VMs, 92 # specially with large memory requirements. 93 depends on TRANSPARENT_HUGEPAGE 94 # MTRRs are controlled by VTL0, and are not specific to individual VTLs. 95 # Therefore, do not attempt to access or modify MTRRs here. 96 depends on !MTRR 97 select CPUMASK_OFFSTACK 98 select VIRT_XFER_TO_GUEST_WORK 99 default n 100 help 101 Select this option to enable Hyper-V VTL driver support. 102 This driver provides interfaces for Virtual Machine Manager (VMM) running in VTL2 103 userspace to create VTLs and partitions, setup and manage VTL0 memory and 104 allow userspace to make direct hypercalls. This also allows to map VTL0's address 105 space to a usermode process in VTL2 and supports getting new VMBus messages and channel 106 events in VTL2. 107 108 If unsure, say N. 109 110endmenu 111