Commit e77aff67 authored by Vincent Donnefort's avatar Vincent Donnefort
Browse files

ANDROID: KVM: arm64: Nop padding for ftrace support in the pKVM hyp



When built with CONFIG_PROTECTED_NVHE_FTRACE, add 3 nops after each
function entry. This intends to make room for the upcoming ftrace
support in the pKVM hypervisor.

Each modified function address is added to the ELF section
__patchable_function_entries.

Tracing related functions are not covered to avoid infinite calls when
ftrace will be wired with tracing.

Bug: 357781595
Change-Id: I7128b459f03470815d975cdc349f6de6846695c0
Signed-off-by: default avatarVincent Donnefort <vdonnefort@google.com>
parent 3a1ca167
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment