Drivers: hv: Remove !CPU_BIG_ENDIAN qualifier for arm64
Subsystems (2)
PATCH 1/1 Drivers: hv: Remove !CPU_BIG_ENDIAN qualifier for arm64
Support for CPU_BIG_ENDIAN configurations on arm64 was deprecated in commit 1cf89b6bf660 ("arm64: Kconfig: Make CPU_BIG_ENDIAN depend on BROKEN"). The support is now in the process of being completely removed.
The Kconfig for Hyper-V guests on arm64 currently has a !CPU_BIG_ENDIAN qualifier since Hyper-V only supports little endian. But with Linux on arm64 restricted to little endian, that qualifier is no longer necessary. Remove it.
--- drivers/hv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/Kconfig +1 -1
@@ -5,7 +5,7 @@ menu "Microsoft Hyper-V guest support" config HYPERV bool "Microsoft Hyper-V core hypervisor support" depends on (X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \ - || (ARM64 && !CPU_BIG_ENDIAN) + || ARM64 select PARAVIRT select X86_HV_CALLBACK_VECTOR if X86 select OF_EARLY_FLATTREE if OF
Signature · 1 line
2.25.1
Quoted 20 lines · Michael Kelley
Support for
CPU_BIG_ENDIANconfigurations on arm64 was deprecated in commit1cf89b6bf660("arm64:Kconfig: MakeCPU_BIG_ENDIANdepend on BROKEN"). The support is now in the process of being completely removed.The
Kconfigfor Hyper-V guests on arm64 currently has a !CPU_BIG_ENDIAN qualifier since Hyper-V only supports little endian. But with Linux on arm64 restricted to little endian, that qualifier is no longer necessary. Remove it.Signed-off-by Michael Kelley <[email protected]>--- drivers/hv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hv/Kconfig +0
-0
drivers/hv/Kconfig menu "Microsoft Hyper-V guest support" · line 8
Quoted 5 lines
drivers/hv/Kconfig +1
-1@@ -5,7 +5,7 @@ menu "Microsoft Hyper-V guest support" config HYPERV bool "Microsoft Hyper-V core hypervisor support" depends on (X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \ - || (ARM64 && !CPU_BIG_ENDIAN) + || ARM64
Personally, I think we should leave it be until aarch64_be support is completely stripped out of the kernel.
Hamza
Quoted 6 lines
drivers/hv/Kconfig +0
-0select PARAVIRT select X86_HV_CALLBACK_VECTOR if X86 select OF_EARLY_FLATTREE if OFSignature · 1 line
2.25.1
From: Hamza Mahfooz <[email protected]> Sent: Friday, August 28, 2026 6:32 AM
Quoted 17 lines · Michael Kelley
Quoted 15 lines
Support for
CPU_BIG_ENDIANconfigurations on arm64 was deprecated in commit1cf89b6bf660("arm64:Kconfig: MakeCPU_BIG_ENDIANdepend on BROKEN"). The support is now in the process of being completely removed.The
Kconfigfor Hyper-V guests on arm64 currently has a !CPU_BIG_ENDIAN qualifier since Hyper-V only supports little endian. But with Linux on arm64 restricted to little endian, that qualifier is no longer necessary. Remove it.Signed-off-by Michael Kelley <[email protected]>--- drivers/hv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
drivers/hv/Kconfig menu "Microsoft Hyper-V guest support" · line 8
Quoted 10 lines
drivers/hv/Kconfig +1
-1@@ -5,7 +5,7 @@ menu "Microsoft Hyper-V guest support" config HYPERV bool "Microsoft Hyper-V core hypervisor support" depends on (X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \ - || (ARM64 && !CPU_BIG_ENDIAN) + || ARM64Personally, I think we should leave it be until
aarch64_besupport is completely stripped out of the kernel.
The removal is in progress -- see [1]. As noted in that overview, some kernel areas have already removed the big-endian support, so the kernel is already irrevocably down the path. But there's certainly no urgency to do it here as it has no operational effect. It's just a cleanup item I noted and if the preference is to wait on picking it up, that's fine.
Michael
From: Michael Kelley <[email protected]> Sent: Friday, August 28, 2026 8:13 AM
Quoted 40 lines
From: Hamza Mahfooz <[email protected]> Sent: Friday, August 28, 2026 6:32 AM
Quoted 17 lines · Michael Kelley
Quoted 15 lines
Support for
CPU_BIG_ENDIANconfigurations on arm64 was deprecated in commit1cf89b6bf660("arm64:Kconfig: MakeCPU_BIG_ENDIANdepend on BROKEN"). The support is now in the process of being completely removed.The
Kconfigfor Hyper-V guests on arm64 currently has a !CPU_BIG_ENDIAN qualifier since Hyper-V only supports little endian. But with Linux on arm64 restricted to little endian, that qualifier is no longer necessary. Remove it.Signed-off-by Michael Kelley <[email protected]>--- drivers/hv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
drivers/hv/Kconfig menu "Microsoft Hyper-V guest support" · line 8
Quoted 10 lines
drivers/hv/Kconfig +1
-1@@ -5,7 +5,7 @@ menu "Microsoft Hyper-V guest support" config HYPERV bool "Microsoft Hyper-V core hypervisor support" depends on (X86 && X86_LOCAL_APIC && HYPERVISOR_GUEST) \ - || (ARM64 && !CPU_BIG_ENDIAN) + || ARM64Personally, I think we should leave it be until
aarch64_besupport is completely stripped out of the kernel.The removal is in progress -- see [1]. As noted in that overview, some kernel areas have already removed the big-endian support, so the kernel is already irrevocably down the path. But there's certainly no urgency to do it here as it has no operational effect. It's just a cleanup item I noted and if the preference is to wait on picking it up, that's fine.
Quoted 4 lines
Michael
This can be dropped as a separate patch. Will Deacon is making the change in v2 of his series to remove and cleanup arm64 big-endian support throughout the kernel [2]. He did not have the Hyper-V change in v1 of his series.
Michael