Skip to content

KVM: arm64: Fix + test for SError ESR

Oliver Upton kvmarm 1 version Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Populate ESR_ELx.EC for emulated SError injectionarch/arm64/kvm/inject_fault.c+4 -00 replies
2/2KVM: arm64: selftests: Test ESR propagation for vSError injectiontools/testing/selftests/kvm/arm64/external_aborts.c+30 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: arm64: Fix + test for SError ESR

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

Signature · 1 line
2.39.5