@@ -808,6 +808,13 @@ config VMWARE_GUEST
This option enables several optimizations for running under the
VMware hypervisor.
+config HYPERV_GUEST
+ bool "HyperV Guest support"
+ default y
+ help
+ This option enables several optimizations for running under the
+ HyperV hypervisor.
+
config KVM_GUEST
bool "KVM Guest support (including kvmclock)"
depends on PARAVIRT
@@ -51,9 +51,9 @@ obj-$(CONFIG_X86_CPU_RESCTRL) += resctrl/
obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
-obj-$(CONFIG_HYPERVISOR_GUEST) += hypervisor.o mshyperv.o
+obj-$(CONFIG_HYPERVISOR_GUEST) += hypervisor.o
obj-$(CONFIG_VMWARE_GUEST) += vmware.o
-
+obj-$(CONFIG_HYPERV_GUEST) += mshyperv.o
obj-$(CONFIG_ACRN_GUEST) += acrn.o
ifdef CONFIG_X86_FEATURE_NAMES
@@ -37,7 +37,9 @@ static const __initconst struct hypervisor_x86 * const hypervisors[] =
#ifdef CONFIG_VMWARE_GUEST
&x86_hyper_vmware,
#endif
+#ifdef CONFIG_HYPERV_GUEST
&x86_hyper_ms_hyperv,
+#endif
#ifdef CONFIG_KVM_GUEST
&x86_hyper_kvm,
#endif
@@ -4,7 +4,7 @@ menu "Microsoft Hyper-V guest support"
config HYPERV
tristate "Microsoft Hyper-V client drivers"
- depends on X86 && ACPI && X86_LOCAL_APIC && HYPERVISOR_GUEST
+ depends on X86 && ACPI && X86_LOCAL_APIC && HYPERV_GUEST
select PARAVIRT
select X86_HV_CALLBACK_VECTOR
help