* [PATCH] KVM: arm64: nvhe: Fix build failure with gcc
@ 2025-06-10 15:11 Aneesh Kumar K.V (Arm)
2025-06-10 15:17 ` Aneesh Kumar K.V
2025-06-10 15:31 ` Marc Zyngier
0 siblings, 2 replies; 4+ messages in thread
From: Aneesh Kumar K.V (Arm) @ 2025-06-10 15:11 UTC (permalink / raw)
To: kvmarm
Cc: Aneesh Kumar K.V (Arm), Marc Zyngier, Oliver Upton, Joey Gouly,
Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
Mark Rutland
Address a build failure encountered with aarch64-linux-gnu-gcc version
13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
/usr/bin/aarch64-linux-gnu-ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__clock_mult_uint128':
/linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): undefined reference to `__kvm_nvhe___lshrti3'
/linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kvm_nvhe___lshrti3'
Similar to commit 9bfe7553fadb ("arm64: Implement __lshrti3 library function"),
this change use the added helper.
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Joey Gouly <joey.gouly@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Zenghui Yu <yuzenghui@huawei.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
---
arch/arm64/kvm/hyp/nvhe/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kvm/hyp/nvhe/Makefile b/arch/arm64/kvm/hyp/nvhe/Makefile
index a76522d63c3e..3dd2c780bbfc 100644
--- a/arch/arm64/kvm/hyp/nvhe/Makefile
+++ b/arch/arm64/kvm/hyp/nvhe/Makefile
@@ -17,7 +17,7 @@ ccflags-y += -fno-stack-protector \
hostprogs := gen-hyprel
HOST_EXTRACFLAGS += -I$(objtree)/include
-lib-objs := clear_page.o copy_page.o memcpy.o memset.o
+lib-objs := clear_page.o copy_page.o memcpy.o memset.o tishift.o
lib-objs := $(addprefix ../../../lib/, $(lib-objs))
CFLAGS_switch.nvhe.o += -Wno-override-init
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] KVM: arm64: nvhe: Fix build failure with gcc
2025-06-10 15:11 [PATCH] KVM: arm64: nvhe: Fix build failure with gcc Aneesh Kumar K.V (Arm)
@ 2025-06-10 15:17 ` Aneesh Kumar K.V
2025-06-10 15:31 ` Marc Zyngier
1 sibling, 0 replies; 4+ messages in thread
From: Aneesh Kumar K.V @ 2025-06-10 15:17 UTC (permalink / raw)
To: kvmarm
Cc: Marc Zyngier, Oliver Upton, Joey Gouly, Suzuki K Poulose,
Zenghui Yu, Catalin Marinas, Will Deacon, Mark Rutland
"Aneesh Kumar K.V (Arm)" <aneesh.kumar@kernel.org> writes:
> Address a build failure encountered with aarch64-linux-gnu-gcc version
> 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
>
> /usr/bin/aarch64-linux-gnu-ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__clock_mult_uint128':
> /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): undefined reference to `__kvm_nvhe___lshrti3'
> /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kvm_nvhe___lshrti3'
>
> Similar to commit 9bfe7553fadb ("arm64: Implement __lshrti3 library function"),
> this change use the added helper.
>
This is with the pkvm tracefs patches found here https://lore.kernel.org/all/20250516134031.661124-3-vdonnefort@google.com
>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Oliver Upton <oliver.upton@linux.dev>
> Cc: Joey Gouly <joey.gouly@arm.com>
> Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
> Cc: Zenghui Yu <yuzenghui@huawei.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will@kernel.org>
>
> Suggested-by: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
> ---
> arch/arm64/kvm/hyp/nvhe/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kvm/hyp/nvhe/Makefile b/arch/arm64/kvm/hyp/nvhe/Makefile
> index a76522d63c3e..3dd2c780bbfc 100644
> --- a/arch/arm64/kvm/hyp/nvhe/Makefile
> +++ b/arch/arm64/kvm/hyp/nvhe/Makefile
> @@ -17,7 +17,7 @@ ccflags-y += -fno-stack-protector \
> hostprogs := gen-hyprel
> HOST_EXTRACFLAGS += -I$(objtree)/include
>
> -lib-objs := clear_page.o copy_page.o memcpy.o memset.o
> +lib-objs := clear_page.o copy_page.o memcpy.o memset.o tishift.o
> lib-objs := $(addprefix ../../../lib/, $(lib-objs))
>
> CFLAGS_switch.nvhe.o += -Wno-override-init
> --
> 2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] KVM: arm64: nvhe: Fix build failure with gcc
2025-06-10 15:11 [PATCH] KVM: arm64: nvhe: Fix build failure with gcc Aneesh Kumar K.V (Arm)
2025-06-10 15:17 ` Aneesh Kumar K.V
@ 2025-06-10 15:31 ` Marc Zyngier
2025-06-10 15:48 ` Vincent Donnefort
1 sibling, 1 reply; 4+ messages in thread
From: Marc Zyngier @ 2025-06-10 15:31 UTC (permalink / raw)
To: Aneesh Kumar K.V (Arm)
Cc: kvmarm, Oliver Upton, Joey Gouly, Suzuki K Poulose, Zenghui Yu,
Catalin Marinas, Will Deacon, Mark Rutland
On Tue, 10 Jun 2025 16:11:32 +0100,
"Aneesh Kumar K.V (Arm)" <aneesh.kumar@kernel.org> wrote:
>
> Address a build failure encountered with aarch64-linux-gnu-gcc version
> 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
>
> /usr/bin/aarch64-linux-gnu-ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__clock_mult_uint128':
> /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): undefined reference to `__kvm_nvhe___lshrti3'
> /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kvm_nvhe___lshrti3'
$ ls -l arch/arm64/kvm/hyp/nvhe/clock.c
ls: cannot access 'arch/arm64/kvm/hyp/nvhe/clock.c': No such file or directory
>
> Similar to commit 9bfe7553fadb ("arm64: Implement __lshrti3 library function"),
> this change use the added helper.
>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Oliver Upton <oliver.upton@linux.dev>
> Cc: Joey Gouly <joey.gouly@arm.com>
> Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
> Cc: Zenghui Yu <yuzenghui@huawei.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will@kernel.org>
>
> Suggested-by: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
What was recently introduced that triggers this? I'd like to
understand what mandates it, and avoid it of at all possible.
M.
--
Jazz isn't dead. It just smells funny.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] KVM: arm64: nvhe: Fix build failure with gcc
2025-06-10 15:31 ` Marc Zyngier
@ 2025-06-10 15:48 ` Vincent Donnefort
0 siblings, 0 replies; 4+ messages in thread
From: Vincent Donnefort @ 2025-06-10 15:48 UTC (permalink / raw)
To: Marc Zyngier
Cc: Aneesh Kumar K.V (Arm), kvmarm, Oliver Upton, Joey Gouly,
Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
Mark Rutland
On Tue, Jun 10, 2025 at 04:31:39PM +0100, Marc Zyngier wrote:
> On Tue, 10 Jun 2025 16:11:32 +0100,
> "Aneesh Kumar K.V (Arm)" <aneesh.kumar@kernel.org> wrote:
> >
> > Address a build failure encountered with aarch64-linux-gnu-gcc version
> > 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
> >
> > /usr/bin/aarch64-linux-gnu-ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__clock_mult_uint128':
> > /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): undefined reference to `__kvm_nvhe___lshrti3'
> > /linux/work/arch/arm64/kvm/hyp/nvhe/clock.c:27:(.hyp.text+0x120d8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__kvm_nvhe___lshrti3'
>
> $ ls -l arch/arm64/kvm/hyp/nvhe/clock.c
> ls: cannot access 'arch/arm64/kvm/hyp/nvhe/clock.c': No such file or directory
Hum, this file is for the pKVM tracing support and is not upstream yet:
https://lore.kernel.org/all/20250516134031.661124-18-vdonnefort@google.com/
>
> >
> > Similar to commit 9bfe7553fadb ("arm64: Implement __lshrti3 library function"),
> > this change use the added helper.
> >
> > Cc: Marc Zyngier <maz@kernel.org>
> > Cc: Oliver Upton <oliver.upton@linux.dev>
> > Cc: Joey Gouly <joey.gouly@arm.com>
> > Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
> > Cc: Zenghui Yu <yuzenghui@huawei.com>
> > Cc: Catalin Marinas <catalin.marinas@arm.com>
> > Cc: Will Deacon <will@kernel.org>
> >
> > Suggested-by: Mark Rutland <mark.rutland@arm.com>
> > Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
>
> What was recently introduced that triggers this? I'd like to
> understand what mandates it, and avoid it of at all possible.
>
> M.
>
> --
> Jazz isn't dead. It just smells funny.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-10 15:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 15:11 [PATCH] KVM: arm64: nvhe: Fix build failure with gcc Aneesh Kumar K.V (Arm)
2025-06-10 15:17 ` Aneesh Kumar K.V
2025-06-10 15:31 ` Marc Zyngier
2025-06-10 15:48 ` Vincent Donnefort
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.