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

Volodymyr Babchuk posted 2 patches 8 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250213153748.2869989-1-volodymyr._5Fbabchuk@epam.com
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(-)
[PATCH v2 0/2] xen: arm64: Set IL to 1 when injecting exceptions
Posted by Volodymyr Babchuk 8 months, 3 weeks ago
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