KVM: arm64: Don't unnecessarily map host kernel sections at EL2
authorQuentin Perret <qperret@google.com>
Thu, 10 Nov 2022 19:02:57 +0000 (19:02 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Nov 2022 17:19:35 +0000 (17:19 +0000)
commit169cd0f8238f2598b85d2db2e15828e8f8da18e5
tree2a7bfd5c6dcc1d509da79b0fd37e171e326c9be1
parent27eb26bfff5d358d42911d04bbecc62e659ec32b
KVM: arm64: Don't unnecessarily map host kernel sections at EL2

We no longer need to map the host's '.rodata' and '.bss' sections in the
stage-1 page-table of the pKVM hypervisor at EL2, so remove those
mappings and avoid creating any future dependencies at EL2 on
host-controlled data structures.

Tested-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221110190259.26861-25-will@kernel.org
arch/arm64/kernel/image-vars.h
arch/arm64/kvm/hyp/nvhe/setup.c