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 17122C001DC for ; Mon, 31 Jul 2023 09:16:14 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.572839.896908 (Exim 4.92) (envelope-from ) id 1qQP0R-0007oK-0N; Mon, 31 Jul 2023 09:15:59 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 572839.896908; Mon, 31 Jul 2023 09:15:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qQP0Q-0007oD-Sx; Mon, 31 Jul 2023 09:15:58 +0000 Received: by outflank-mailman (input) for mailman id 572839; Mon, 31 Jul 2023 09:15:57 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qQP0P-0007o7-7a for xen-devel@lists.xenproject.org; Mon, 31 Jul 2023 09:15:57 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id dafcc733-2f82-11ee-b254-6b7b168915f2; Mon, 31 Jul 2023 11:15:56 +0200 (CEST) Received: from support.bugseng.com (support.bugseng.com [162.55.131.47]) by support.bugseng.com (Postfix) with ESMTPA id C8F7B4EE0737; Mon, 31 Jul 2023 11:15:55 +0200 (CEST) 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" X-Inumbo-ID: dafcc733-2f82-11ee-b254-6b7b168915f2 MIME-Version: 1.0 Date: Mon, 31 Jul 2023 11:15:55 +0200 From: Nicola Vetrini To: Andrew Cooper Cc: Xen-devel , Jan Beulich , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Wei Liu , Roberto Bagnara Subject: Re: [PATCH 2/3] x86/entry: Rename the exception entrypoints In-Reply-To: <20230728194320.3082120-3-andrew.cooper3@citrix.com> References: <20230728194320.3082120-1-andrew.cooper3@citrix.com> <20230728194320.3082120-3-andrew.cooper3@citrix.com> User-Agent: Roundcube Webmail/1.4.3 Message-ID: <49c6e1314578682cb1ddc6d7733b7c9b@bugseng.com> X-Sender: nicola.vetrini@bugseng.com Organization: BUGSENG s.r.l. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 28/07/2023 21:43, Andrew Cooper wrote: > This makes the names match the architectural short names that we use > elsewhere. This avoids 'debug' in particular from being a global > symbol > shadowed by many local parameter names. > > Remove the DECLARE_TRAP_HANDLER{,_CONST}() infrastructure. Only > NMI/#MC are > referenced externally (and NMI will cease to be soon, as part of adding > FRED > support). Move the entrypoint declarations into the respective traps.c > where > they're used, rather than keeping them visible across ~all of Xen. > > Drop the long-stale comment at the top of init_idt_traps(). It's > mostly > discussing a 32bit Xen, and bogus otherwise as it's impossible to use > trap > gates correctly for these purposes. > > No functional change. > > Signed-off-by: Andrew Cooper > --- > CC: Jan Beulich > CC: Roger Pau Monné > CC: Wei Liu > CC: Roberto Bagnara > CC: Nicola Vetrini > > This is half of a previous patch, cut down to just the rename and > header file > cleanup. > --- > xen/arch/x86/include/asm/processor.h | 34 +------------- > xen/arch/x86/pv/traps.c | 2 + > xen/arch/x86/traps.c | 70 +++++++++++++++++----------- > xen/arch/x86/x86_64/entry.S | 36 +++++++------- > 4 files changed, 64 insertions(+), 78 deletions(-) > With respect to Rule 5.3: Tested-by: Nicola Vetrini -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)