Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEA1BC10F1A for ; Tue, 7 May 2024 17:37:33 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.718430.1121008 (Exim 4.92) (envelope-from ) id 1s4Okf-000165-U7; Tue, 07 May 2024 17:37:17 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 718430.1121008; Tue, 07 May 2024 17:37:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s4Okf-00015y-R8; Tue, 07 May 2024 17:37:17 +0000 Received: by outflank-mailman (input) for mailman id 718430; Tue, 07 May 2024 17:37:16 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s4Oke-00015s-87 for xen-devel@lists.xenproject.org; Tue, 07 May 2024 17:37:16 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s4Okc-0003pi-Vk; Tue, 07 May 2024 17:37:14 +0000 Received: from [15.248.2.31] (helo=[10.24.67.35]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1s4Okc-0003VO-Mh; Tue, 07 May 2024 17:37:14 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=wblJRTqKKZsdNoe9ayI7MRwbMHoVJ4a8NXxsfgPQbSM=; b=jqpwiMGzM6jdOpssEvE+cC92sF P6KE8iDG+GVxlaZ+S9zNjnPBCXsbANjwcHO27k5unUCpqbvmaa9TtUYnWjacxny2Xxvq5+0t0/Fcc 7Lw6Pq3d/9R0Xz1/P0pKHhVttj2yOaeHccIczau9h5zLLVQJP790euiq3W2PT2+zOX/M=; Message-ID: <35c8fbfb-8b09-4aae-8c98-402dcd65ca2e@xen.org> Date: Tue, 7 May 2024 18:37:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 6/9] xen/arm64: bpi: Add missing code symbol annotations Content-Language: en-GB To: "Edgar E. Iglesias" Cc: Stefano Stabellini , xen-devel@lists.xenproject.org, bertrand.marquis@arm.com, michal.orzel@amd.com, Volodymyr_Babchuk@epam.com, jbeulich@suse.com, andrew.cooper3@citrix.com, edgar.iglesias@amd.com References: <20240501035448.964625-1-edgar.iglesias@gmail.com> <20240501035448.964625-7-edgar.iglesias@gmail.com> <398afdf1-8a11-4584-bb07-cf6fc2373d21@xen.org> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 07/05/2024 17:55, Edgar E. Iglesias wrote: > On Tue, May 7, 2024 at 11:57 AM Julien Grall wrote: > Hi Julien, Hi Edgar, > > The reason I choose FUNC for the start of the symbol is because these > symbols contain > executable code (not only a table of pointers to code somewhere else) > and the ELF spec > says that STT_FUNC means the symbol contains functions or other executable > code (not only callable functions IIUC): > > "STT_FUNC The symbol is associated with a function or other executable code." > https://refspecs.linuxbase.org/elf/elf.pdf > (Symbol Table 1-20). Thanks for the pointer. I originally did intend to suggest the change, but then I saw the use of LABEL in x86 (such as svm_stgi_label). There are a few others example with LABEL_LOCAL. AFAICT, this is also executable code which the only difference that it is not meant to be called by someone else. Furthermore, LABEL is using DO_CODE_ALIGN(...) for the alignment which imply that it is intended to be used by executable code. So I thought the only difference was whether the label was intended to be used as a function. > > I think using LABEL instead of GLOBAL for the _end labels of these > code sequences makes sense. > I'm happy to change the _start labels to LABEL too if you guys feel > that's better. I have to admit I am little confused with the difference between LABEL vs FUNC. I think I will need some guidance from Jan (he introduced linkage.h). Cheers, -- Julien Grall