[PATCH v2] KVM: arm64: Add missing BTI instructions
Oliver Upton
oliver.upton at linux.dev
Wed Jul 12 15:50:34 PDT 2023
On Thu, 6 Jul 2023 15:22:40 +0000, Mostafa Saleh wrote:
> Some bti instructions were missing from
> commit b53d4a272349 ("KVM: arm64: Use BTI for nvhe")
>
> 1) kvm_host_psci_cpu_entry
> kvm_host_psci_cpu_entry is called from __kvm_hyp_init_cpu through "br"
> instruction as __kvm_hyp_init_cpu resides in idmap section while
> kvm_host_psci_cpu_entry is in hyp .text so the offset is larger than
> 128MB range covered by "b".
> Which means that this function should start with "bti j" instruction.
>
> [...]
Applied to kvmarm/fixes. Sorry this took longer than expected, Mostafa. I
was hitting an unrelated issue with pKVM initialization on the only system
I have that supports BTI.
[1/1] KVM: arm64: Add missing BTI instructions
https://git.kernel.org/kvmarm/kvmarm/c/dcf89d111199
--
Best,
Oliver
More information about the linux-arm-kernel
mailing list