[PATCH v1] KVM: arm64: make the hyp vector table entries local

Will Deacon will at kernel.org
Tue Feb 23 05:47:56 EST 2021


On Mon, Feb 22, 2021 at 04:49:56PM +0000, Joey Gouly wrote:
> Make the hyp vector table entries local functions so they
> are not accidentally referred to outside of this file.
> 
> Using SYM_CODE_START_LOCAL matches the other vector tables (in hyp-stub.S,
> hibernate-asm.S and entry.S)
> 
> Signed-off-by: Joey Gouly <joey.gouly at arm.com>
> ---
>  arch/arm64/kvm/hyp/hyp-entry.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/kvm/hyp/hyp-entry.S b/arch/arm64/kvm/hyp/hyp-entry.S
> index d179056e1af8..5f49df4ffdd8 100644
> --- a/arch/arm64/kvm/hyp/hyp-entry.S
> +++ b/arch/arm64/kvm/hyp/hyp-entry.S
> @@ -119,7 +119,7 @@ el2_error:
>  
>  .macro invalid_vector	label, target = __guest_exit_panic
>  	.align	2
> -SYM_CODE_START(\label)
> +SYM_CODE_START_LOCAL(\label)
>  	b \target
>  SYM_CODE_END(\label)
>  .endm

Acked-by: Will Deacon <will at kernel.org>

Will



More information about the linux-arm-kernel mailing list