[PATCH v13 11/40] arm64/gcs: Provide basic EL2 setup to allow GCS usage at EL0 and EL1
Catalin Marinas
catalin.marinas at arm.com
Tue Oct 15 06:05:37 PDT 2024
On Thu, Oct 10, 2024 at 04:18:13PM +0100, Marc Zyngier wrote:
> From 20c98d2647c11db1e40768f92c5998ff5d764a3a Mon Sep 17 00:00:00 2001
> From: Marc Zyngier <maz at kernel.org>
> Date: Thu, 10 Oct 2024 16:13:26 +0100
> Subject: [PATCH] KVM: arm64: Shave a few bytes from the EL2 idmap code
>
> Our idmap is becoming too big, to the point where it doesn't fit in
> a 4kB page anymore.
>
> There are some low-hanging fruits though, such as the el2_init_state
> horror that is expanded 3 times in the kernel. Let's at least limit
> ourselves to two copies, which makes the kernel link again.
>
> At some point, we'll have to have a better way of doing this.
>
> Reported-by: Nathan Chancellor <nathan at kernel.org>
> Signed-off-by: Marc Zyngier <maz at kernel.org>
> Link: https://lore.kernel.org/r/20241009204903.GA3353168@thelio-3990X
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
Tested-by: Catalin Marinas <catalin.marinas at arm.com>
Please merge it as a KVM fix if you can. Thanks.
--
Catalin
More information about the linux-riscv
mailing list