Skip to content

Commit 10f2ad0

Browse files
Marc Zyngieroupton
authored andcommitted
KVM: arm64: Enforce dependency on an ARMv8.4-aware toolchain
With the NV support of TLBI-range operations, KVM makes use of instructions that are only supported by binutils versions >= 2.30. This breaks the build for very old toolchains. Make KVM support conditional on having ARMv8.4 support in the assembler, side-stepping the issue. Fixes: 5d476ca ("KVM: arm64: nv: Add handling of range-based TLBI operations") Reported-by: Viresh Kumar <[email protected]> Suggested-by: Arnd Bergmann <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 7fef1eb commit 10f2ad0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/kvm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if VIRTUALIZATION
1919

2020
menuconfig KVM
2121
bool "Kernel-based Virtual Machine (KVM) support"
22+
depends on AS_HAS_ARMV8_4
2223
select KVM_COMMON
2324
select KVM_GENERIC_HARDWARE_ENABLING
2425
select KVM_GENERIC_MMU_NOTIFIER

0 commit comments

Comments
 (0)