KVM: arm64: Move __smccc_workaround_1_smc to .rodata
authorDavid Brazdil <dbrazdil@google.com>
Thu, 25 Jun 2020 13:14:07 +0000 (14:14 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 5 Jul 2020 17:37:48 +0000 (18:37 +0100)
commit7b2399ea5640b2e5f576af08b91091a26f240ea4
treec18e344fc0b220621b47085aaa3a60c653b10c4e
parentb38b298aa4397e2dc74a89b4dd3eac9e59b64c96
KVM: arm64: Move __smccc_workaround_1_smc to .rodata

This snippet of assembly is used by cpu_errata.c to overwrite parts of KVM hyp
vector. Move it to its own source file and change its ELF section to .rodata.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200625131420.71444-3-dbrazdil@google.com
arch/arm64/kvm/hyp/Makefile
arch/arm64/kvm/hyp/hyp-entry.S
arch/arm64/kvm/hyp/smccc_wa.S [new file with mode: 0644]