]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Annotate guest entry/exit as a single function
authorMark Brown <broonie@kernel.org>
Mon, 20 Jan 2020 12:47:06 +0000 (12:47 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 23 Jan 2020 10:38:14 +0000 (10:38 +0000)
commita7fd54753200a8e179b99dc2ee508890f131381b
treebaff436241f4953fd01b7620ab20c8f74c55ef37
parente0e60f805c24c02e4e53dff337a1ede1e50610e6
arm64: KVM: Annotate guest entry/exit as a single function

In an effort to clarify and simplify the annotations of assembly
functions in the kernel new macros have been introduced replacing ENTRY
and ENDPROC. There are separate annotations SYM_FUNC_ for normal C
functions and SYM_CODE_ for other code. Currently __guest_enter and
__guest_exit are annotated as standard functions but this is not
entirely correct as the former doesn't do a normal return and the latter
is not entered in a normal fashion. From the point of view of the
hypervisor the guest entry/exit may be viewed as a single
function which happens to have an eret in the middle of it so let's
annotate it as such.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200120124706.8681-1-broonie@kernel.org
arch/arm64/kvm/hyp/entry.S