Skip to content

Commit 7aff79e

Browse files
kelleymhliuw
authored andcommitted
Drivers: hv: Enable Hyper-V code to be built on ARM64
Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on ARM64, causing the Hyper-V specific code to be built. Exclude the Hyper-V enlightened clocks/timers code from being built for ARM64. Signed-off-by: Michael Kelley <[email protected]> Reviewed-by: Boqun Feng <[email protected]> Acked-by: Marc Zyngier <[email protected]> Acked-by: Mark Rutland <[email protected]> Acked-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent 9b16c21 commit 7aff79e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/hv/Kconfig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ menu "Microsoft Hyper-V guest support"
44

55
config HYPERV
66
tristate "Microsoft Hyper-V client drivers"
7-
depends on X86 && ACPI && X86_LOCAL_APIC && HYPERVISOR_GUEST
7+
depends on ACPI && ((X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \
8+
|| (ARM64 && !CPU_BIG_ENDIAN))
89
select PARAVIRT
9-
select X86_HV_CALLBACK_VECTOR
10+
select X86_HV_CALLBACK_VECTOR if X86
1011
help
1112
Select this option to run Linux as a Hyper-V client operating
1213
system.
1314

1415
config HYPERV_TIMER
15-
def_bool HYPERV
16+
def_bool HYPERV && X86
1617

1718
config HYPERV_UTILS
1819
tristate "Microsoft Hyper-V Utilities driver"

0 commit comments

Comments
 (0)