Skip to content

KVM: arm64: nv: Fixes for external abort exception routing

Oliver Upton kvmarm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: nv: Respect exception routing rules for SEAsarch/arm64/include/asm/kvm_emulate.h arch/arm64/kvm/emulate-nested.c arch/arm64/kvm/guest.c +3 more+57 -472 replies
2/4KVM: arm64: nv: Ensure Address size faults affect correct ESRarch/arm64/kvm/inject_fault.c+9 -20 replies
3/4KVM: arm64: nv: Honor SError exception routing / maskingarch/arm64/include/asm/kvm_emulate.h arch/arm64/include/asm/kvm_host.h arch/arm64/include/asm/kvm_nested.h +7 more+137 -360 replies
4/4KVM: arm64: Treat vCPU with pending SError as runnablearch/arm64/kvm/arm.c+2 -10 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/4] KVM: arm64: nv: Fixes for external abort exception routing

SEAs and SErrors come with a set of exception routing rules that are potentially affected by EL2. KVM currently ignores these and just injects the exceptions into the present context.

This series aims to address that, enlightening some of the injection plumbing to the presence of vEL2. Additionally, patches 2 and 4 are minor fixes for bugs that I found along the way.

Oliver Upton (4):
KVM: arm64: nv: Respect exception routing rules for SEAs
KVM: arm64: nv: Ensure Address size faults affect correct ESR
KVM: arm64: nv: Honor SError exception routing / masking
KVM: arm64: Treat vCPU with pending SError as runnable

 arch/arm64/include/asm/kvm_emulate.h | 31 ++++++++++--
 arch/arm64/include/asm/kvm_host.h    | 20 ++++++--
 arch/arm64/include/asm/kvm_nested.h  |  2 +
 arch/arm64/kvm/arm.c                 |  7 ++-
 arch/arm64/kvm/emulate-nested.c      | 53 ++++++++++++++++++++
 arch/arm64/kvm/guest.c               | 36 +++++++------
 arch/arm64/kvm/handle_exit.c         |  4 +-
 arch/arm64/kvm/inject_fault.c        | 75 +++++++++++-----------------
 arch/arm64/kvm/mmio.c                |  6 +--
 arch/arm64/kvm/mmu.c                 | 17 ++-----
 arch/arm64/kvm/nested.c              | 36 +++++++++++++
 11 files changed, 203 insertions(+), 84 deletions(-)

base-commit: 1b85d923ba8c9e6afaf19e26708411adde94fba8

Signature · 1 line
2.39.5