mbox series

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

Message ID 20250213153748.2869989-1-volodymyr_babchuk@epam.com (mailing list archive)
Headers show
Series xen: arm64: Set IL to 1 when injecting exceptions | expand

Message

Volodymyr Babchuk Feb. 13, 2025, 3:37 p.m. UTC
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(-)