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

[PATCH v2 0/2] xen: arm64: Set IL to 1 when injecting exceptions


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Thu, 13 Feb 2025 15:37:54 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=feXeKd2sh9t+/pds9tJODtekUG6iJL9IArA7tNh/eoU=; b=H/yBveTfh9rvT4PRgba/dzOBE16WZpa7SA9WvwfYSjXnfB72UvlC1Kn/TZGzzLfU64JrBxrxFp2uGHAFe/gxT/Cu657BFFZQQQFhaKt9rGak6MouFE7JQCFZ8HDg/kspjYRgznZfPXQpHoAUX93qAT4MqwE8N4k4KMl5Q1XkZXvXobJzRxZAfb7O3WahfV9+Exl2Au2pfzkwIquoAMM+aoYmOqTcvJfCMiTHbTGuR3et6kRp6lKJSLcUXGxUJ73ObF314u3XqR62Pe5bxbkEUqO9IwZ2ohGE65G522OZpn2AlPxbA5y5kJ43d49BDEFx/2WzDP6C/eQz9D37AQn0dg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ccNGH4/kCG5F8ffMOIjScwrhcB7BO/2hBQxgcGZIMVmTG6gU2IUa/2V0VqpSIRpD+ZGKMtYSf+8sOA0QiHxfxQux5wphK0D8xex0ftthgMOPn0mEOQVrefPuoZfWL9lqbs3fzjhNZgrOz50bW/RhuQpOm++/Vhnp4nX1U3O1cfaqqN5jaMWXvypySbjkM3QkN8MqsLsSqDK5d6tSYLf8P4KRoflxOqRn8020MSYn3Xy4tBs5rN33dbpoFSDB/SwNFyeuOy3u2t2VxbyWrwwirOARNyhtLY41O4YBfjAbeLf5kS2yYbt4Y9kgDwWlZIAFa7DI3MVlK6YkWIP9Nohh0A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 13 Feb 2025 15:38:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbfi0/Dl9MXK7n90qWbfS8kxOotA==
  • Thread-topic: [PATCH v2 0/2] xen: arm64: Set IL to 1 when injecting exceptions

Internal discussion on "Is ESR=0x0 a valid exception syndrome?" led
to realization that:

1. It is not valid exception syndrome

2. Xen theoretically may inject an exception with ESR=0x0

Further discussion in the ML showed that Xen also may inject
non-standard Data or Instuction Abort exception.

Following two patches address both issues.

Volodymyr Babchuk (2):
  arch: arm64: always set IL=1 when injecting undefined exception
  arch: arm64: always set IL=1 when injecting an abort exception

 xen/arch/arm/arm64/vsysreg.c           | 10 ++---
 xen/arch/arm/include/asm/arm64/traps.h |  2 +-
 xen/arch/arm/include/asm/p2m.h         |  3 +-
 xen/arch/arm/include/asm/traps.h       |  2 +-
 xen/arch/arm/p2m.c                     |  5 +--
 xen/arch/arm/traps.c                   | 53 ++++++++++++--------------
 xen/arch/arm/vcpreg.c                  | 26 ++++++-------
 xen/arch/arm/vsmc.c                    |  6 +--
 8 files changed, 49 insertions(+), 58 deletions(-)

-- 
2.47.1



 


Rackspace

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