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:
Vincent Donnefort <vdonnefort@google.com>
Loading
Please sign in to comment