]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Shave a few bytes from the EL2 idmap code
authorMarc Zyngier <maz@kernel.org>
Thu, 10 Oct 2024 15:13:26 +0000 (16:13 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Oct 2024 08:17:56 +0000 (09:17 +0100)
commitafa9b48f327c9ef36bfba4c643a29385a633252b
treed7ee2e9eab34c6b8c45f47a3727e821a0e109bb2
parentdf5fd75ee305cb5927e0b1a0b46cc988ad8db2b1
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@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241009204903.GA3353168@thelio-3990X
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kernel/asm-offsets.c
arch/arm64/kvm/hyp/nvhe/hyp-init.S