Linux KVM/arm64 development list
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: arm64: nv: Fix nested IRQ exception storm on NV+GICv4
@ 2024-08-23 21:27 Oliver Upton
  2024-08-23 21:27 ` [PATCH 1/3] KVM: arm64: nv: Leave vPE nonresident in nested vgic state Oliver Upton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oliver Upton @ 2024-08-23 21:27 UTC (permalink / raw)
  To: kvmarm
  Cc: Marc Zyngier, James Morse, Suzuki K Poulose, Zenghui Yu,
	Ganapatrao Kulkarni, Oliver Upton

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
-- 
2.46.0.295.g3b9ea8a38a-goog


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

end of thread, other threads:[~2024-08-23 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23 21:27 [PATCH 0/3] KVM: arm64: nv: Fix nested IRQ exception storm on NV+GICv4 Oliver Upton
2024-08-23 21:27 ` [PATCH 1/3] KVM: arm64: nv: Leave vPE nonresident in nested vgic state Oliver Upton
2024-08-23 21:27 ` [PATCH 2/3] KVM: arm64: Move host SVE/SME state flags out of vCPU Oliver Upton
2024-08-23 21:27 ` [PATCH 3/3] KVM: arm64: nv: Request vPE doorbell upon nested ERET to L2 Oliver Upton

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