Skip to content

Commit e3ec97c

Browse files
mrathor99liuw
authored andcommitted
Drivers: hv: Make CONFIG_HYPERV bool
With CONFIG_HYPERV and CONFIG_HYPERV_VMBUS separated, change CONFIG_HYPERV to bool from tristate. CONFIG_HYPERV now becomes the core Hyper-V hypervisor support, such as hypercalls, clocks/timers, Confidential Computing setup, PCI passthru, etc. that doesn't involve VMBus or VMBus devices. Signed-off-by: Mukesh Rathor <mrathor@linux.microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
1 parent 94b0435 commit e3ec97c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ obj-$(CONFIG_SOUNDWIRE) += soundwire/
161161

162162
# Virtualization drivers
163163
obj-$(CONFIG_VIRT_DRIVERS) += virt/
164-
obj-$(subst m,y,$(CONFIG_HYPERV)) += hv/
164+
obj-$(CONFIG_HYPERV) += hv/
165165

166166
obj-$(CONFIG_PM_DEVFREQ) += devfreq/
167167
obj-$(CONFIG_EXTCON) += extcon/

drivers/hv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
menu "Microsoft Hyper-V guest support"
44

55
config HYPERV
6-
tristate "Microsoft Hyper-V client drivers"
6+
bool "Microsoft Hyper-V core hypervisor support"
77
depends on (X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \
88
|| (ARM64 && !CPU_BIG_ENDIAN)
99
select PARAVIRT

drivers/hv/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ mshv_root-y := mshv_root_main.o mshv_synic.o mshv_eventfd.o mshv_irq.o \
1616
mshv_root_hv_call.o mshv_portid_table.o
1717

1818
# Code that must be built-in
19-
obj-$(subst m,y,$(CONFIG_HYPERV)) += hv_common.o
19+
obj-$(CONFIG_HYPERV) += hv_common.o
2020
obj-$(subst m,y,$(CONFIG_MSHV_ROOT)) += hv_proc.o mshv_common.o

0 commit comments

Comments
 (0)