[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] x86/entry: Rename the exception entrypoints


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roberto Bagnara <roberto.bagnara@xxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 31 Jul 2023 10:57:19 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IUqt4FGHi8o7OqgUC/GQ8HY+e25ZWNrtn4yjx++Hlp4=; b=EAph44z6XK61/HScTL7ZbVdg+b57U8hul9TdATDCW0bjICqYJMw8wUT6e9VQwTVRRP/DaNeMTdExYA5F9UJ0QErz93nda/qcfS9glLVh6JUJuZ87zDc0GAoHJw9GrQw+81JmvAcS97gkbjA3Gsls2MgLgR2EFguL8KIZ/fzYhtNeZVMrYOmcTexXusaBJlddO/RSc07nPSp5sLeQA/LjHHDKpANt13Dgtpjo5hiyNeMx0Y4GG89hC/0mrLnUDOmHrhMEbv1PMZOwxvxd1Fi9tx7ubNTiMxQHbToOlPrQd8Ns519VJTfhX0CY2JAtGUjgF3GoW9qzzS30fWst6bdXnw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B9yjmfyW0ix2UI+gu3v/GCTUwzBpYPfFzWx/yFw+Tu0gQLi7dLrg/FgP/Quvjv0HUPMZUdVwzWQtc9u89cOU5F8ePc/KIG2gHWzRaBViR0/GlRC/WD2M8h8/ziKyJ/MayqcaaD4Ku8Y/2+GuY9+Xyl5k52f9WLQOe6EQ4NqgF13Qz+ucdHlH+L9Z6m6uGe8hseIA7i9620KOFcZUIM/uRoN1CHuU2kooyFNYrx9HzGAhktSqCVwFlATXZdKIhuN4l6zkZFCoekVPWoVGEnPDW6Q8oLWFbLFBhHi+UtmoPE4qQa5ZVbUyGg+DvFYsYW3gItlby4L2StWw4aqGaeUgDA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 31 Jul 2023 08:57:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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.

Coming back to my Misra concern here: There's no way we can avoid violating
rule 8.7 (and maybe also 8.6) when it comes to symbols defined in assembly
code. Rule 8.5 otoh is a little more relaxed than I recalled when commenting
on the earlier version of the patch, but it still talks of exclusively
"header files". Roberto, could you please clarify whether putting such
declarations in .c files is indeed not a violation of 8.5?

In any event I see you've added "nocall" - I guess that's an easy
identification for (some of) the symbols defined in assembly code, and
hence needing special casing in scans.

> 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.

I don't think I follow the "impossible", but I'm also not going to make my
(eventual) ack dependent upon you further adjusting this part of the
description.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.