Skip to content

Commit f41ceff

Browse files
romank-msftliuw
authored andcommitted
Drivers: hv: Enable VTL mode for arm64
Kconfig dependencies for arm64 guests on Hyper-V require that be ACPI enabled, and limit VTL mode to x86/x64. To enable VTL mode on arm64 as well, update the dependencies. Since VTL mode requires DeviceTree instead of ACPI, don’t require arm64 guests on Hyper-V to have ACPI unconditionally. Signed-off-by: Roman Kisel <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
1 parent 36ebd32 commit f41ceff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hv/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ menu "Microsoft Hyper-V guest support"
55
config HYPERV
66
tristate "Microsoft Hyper-V client drivers"
77
depends on (X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \
8-
|| (ACPI && ARM64 && !CPU_BIG_ENDIAN)
8+
|| (ARM64 && !CPU_BIG_ENDIAN)
99
select PARAVIRT
1010
select X86_HV_CALLBACK_VECTOR if X86
1111
select OF_EARLY_FLATTREE if OF
@@ -15,7 +15,7 @@ config HYPERV
1515

1616
config HYPERV_VTL_MODE
1717
bool "Enable Linux to boot in VTL context"
18-
depends on X86_64 && HYPERV
18+
depends on (X86_64 || ARM64) && HYPERV
1919
depends on SMP
2020
default n
2121
help
@@ -31,7 +31,7 @@ config HYPERV_VTL_MODE
3131

3232
Select this option to build a Linux kernel to run at a VTL other than
3333
the normal VTL0, which currently is only VTL2. This option
34-
initializes the x86 platform for VTL2, and adds the ability to boot
34+
initializes the kernel to run in VTL2, and adds the ability to boot
3535
secondary CPUs directly into 64-bit context as required for VTLs other
3636
than 0. A kernel built with this option must run at VTL2, and will
3737
not run as a normal guest.

0 commit comments

Comments
 (0)