Skip to content

KVM: arm64: nv: Fix nested IRQ exception storm on NV+GICv4

Oliver Upton kvmarm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: nv: Leave vPE nonresident in nested vgic statearch/arm64/kvm/vgic/vgic-v3.c include/kvm/arm_vgic.h+19 -10 replies
2/3KVM: arm64: Move host SVE/SME state flags out of vCPUarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/fpsimd.c+22 -160 replies
3/3KVM: arm64: nv: Request vPE doorbell upon nested ERET to L2arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/emulate-nested.c arch/arm64/kvm/vgic/vgic-v4.c+21 -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/3] KVM: arm64: nv: Fix nested IRQ exception storm on NV+GICv4

Hi,

There's a rather annoying collision between nested virt and GICv4 that leads to a storm of nested excpetions taken to the L1, meaning the L2 can never get off the ground.

Here's a small series to address the immediate issue + ensure IRQs destined for the L1 aren't erroneously masked by running an L2.

Marc, I've deliberately based this on top of upstream rather than the NV series. I did this to avoid stacking more crap on top of the out of tree series. The fact we don't virtualize GICv4 for the L1 isn't really up for discussion right now, so taking that limitation ahead of full nested VGIC support seems OK.

Note that I spun off a small portion of the nested VGIC patch which avoids making the vPE resident in nested state to give the full picture of how the vPE is managed while nested.

Oliver Upton (3):
KVM: arm64: nv: Leave vPE nonresident in nested vgic state
KVM: arm64: Move host SVE/SME state flags out of vCPU
KVM: arm64: nv: Request vPE doorbell upon nested ERET to L2

 arch/arm64/include/asm/kvm_host.h | 28 ++++++++++++++++++----------
 arch/arm64/kvm/emulate-nested.c   |  2 ++
 arch/arm64/kvm/fpsimd.c           | 12 ++++++------
 arch/arm64/kvm/vgic/vgic-v3.c     | 15 ++++++++++++++-
 arch/arm64/kvm/vgic/vgic-v4.c     | 18 +++++++++++++++++-
 include/kvm/arm_vgic.h            |  5 +++++
 6 files changed, 62 insertions(+), 18 deletions(-)

base-commit: 7c626ce4bae1ac14f60076d00eafe71af30450ba

Signature · 1 line
2.46.0.295.g3b9ea8a38a-goog