From: Oliver Upton <oliver.upton@linux.dev>
To: kvmarm@lists.linux.dev
Cc: Marc Zyngier <maz@kernel.org>, James Morse <james.morse@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>,
Oliver Upton <oliver.upton@linux.dev>
Subject: [PATCH 0/3] KVM: arm64: nv: Fix nested IRQ exception storm on NV+GICv4
Date: Fri, 23 Aug 2024 21:27:00 +0000 [thread overview]
Message-ID: <20240823212703.3576061-1-oliver.upton@linux.dev> (raw)
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
next reply other threads:[~2024-08-23 21:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-23 21:27 Oliver Upton [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240823212703.3576061-1-oliver.upton@linux.dev \
--to=oliver.upton@linux.dev \
--cc=gankulkarni@os.amperecomputing.com \
--cc=james.morse@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=suzuki.poulose@arm.com \
--cc=yuzenghui@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox