Linux KVM/arm64 development list
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: Fix + test for SError ESR
@ 2025-07-08 23:06 Oliver Upton
  2025-07-08 23:06 ` [PATCH 1/2] KVM: arm64: Populate ESR_ELx.EC for emulated SError injection Oliver Upton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oliver Upton @ 2025-07-08 23:06 UTC (permalink / raw)
  To: kvmarm; +Cc: Marc Zyngier, Joey Gouly, Suzuki K Poulose, Zenghui Yu,
	Oliver Upton

VSESR_EL2 only provides an ESR_EL1.ISS value for the SError, not a
complete ESR. Namely, hardware sets the EC field to indicate an SError
(0x2F), meaning we need to do the same for our software-emulated SError
injection.

Note that this behavior already exists for nested SError injection in
kvm_inject_nested_serror(). I also extended the external_aborts test to
assert the guest sees an expected ESR value for an SError.

Oliver Upton (2):
  KVM: arm64: Populate ESR_ELx.EC for emulated SError injection
  KVM: arm64: selftests: Test ESR propagation for vSError injection

 arch/arm64/kvm/inject_fault.c                 |  4 +++
 .../selftests/kvm/arm64/external_aborts.c     | 32 +++++++++++++++++--
 2 files changed, 34 insertions(+), 2 deletions(-)


base-commit: 3c5832f03f2ecd2b881f5bfbae06feeead432c16
-- 
2.39.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-09 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 23:06 [PATCH 0/2] KVM: arm64: Fix + test for SError ESR Oliver Upton
2025-07-08 23:06 ` [PATCH 1/2] KVM: arm64: Populate ESR_ELx.EC for emulated SError injection Oliver Upton
2025-07-08 23:06 ` [PATCH 2/2] KVM: arm64: selftests: Test ESR propagation for vSError injection Oliver Upton
2025-07-09 16:59 ` [PATCH 0/2] KVM: arm64: Fix + test for SError ESR Oliver Upton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox