From: Oliver Upton <oliver.upton@linux.dev>
To: kvmarm@lists.linux.dev
Cc: Marc Zyngier <maz@kernel.org>, Joey Gouly <joey.gouly@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Oliver Upton <oliver.upton@linux.dev>
Subject: [PATCH 0/4] KVM: arm64: Fixes/clarification for GICv4 vLPI injection
Date: Wed, 26 Feb 2025 10:31:20 -0800 [thread overview]
Message-ID: <20250226183124.82094-1-oliver.upton@linux.dev> (raw)
Small batch of fixes for vLPI injection issues that can happen when
userspace is being mean:
- MSI interrupt sources could be mapped to non-MSI GSI routing entries.
KVM doesn't account for the routing type and blindly attempts to map
a vLPI.
- KVM_IRQFD mappings could be installed before the ITS has been
restored, leading to kvm_vgic_v4_set_forwarding() failing due to the
missing guest translation
Prevent userspace from triggering a WARN() because of these issues and
gracefully fall back to software vLPI routing/injection should irqbypass
fail.
I've thrown in some documentation on the restore ordering necessary to get
GICv4 vLPI injection working correctly as well.
Marc, I'm planning to take these for 6.15.
Oliver Upton (4):
KVM: arm64: vgic-v4: Only attempt vLPI mapping for actual MSIs
KVM: arm64: vgic-v4: Only WARN for HW IRQ mismatch when unmapping vLPI
KVM: arm64: vgic-v4: Fall back to software irqbypass if LPI not found
KVM: arm64: Document ordering requirements for irqbypass
Documentation/virt/kvm/devices/arm-vgic-its.rst | 5 ++++-
arch/arm64/kvm/arm.c | 12 ++++++++++++
arch/arm64/kvm/vgic/vgic-v4.c | 17 +++++++++++------
3 files changed, 27 insertions(+), 7 deletions(-)
base-commit: 0ad2507d5d93f39619fc42372c347d6006b64319
--
2.39.5
next reply other threads:[~2025-02-26 18:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 18:31 Oliver Upton [this message]
2025-02-26 18:31 ` [PATCH 1/4] KVM: arm64: vgic-v4: Only attempt vLPI mapping for actual MSIs Oliver Upton
2025-02-26 18:31 ` [PATCH 2/4] KVM: arm64: vgic-v4: Only WARN for HW IRQ mismatch when unmapping vLPI Oliver Upton
2025-02-26 18:31 ` [PATCH 3/4] KVM: arm64: vgic-v4: Fall back to software irqbypass if LPI not found Oliver Upton
2025-02-26 18:31 ` [PATCH 4/4] KVM: arm64: Document ordering requirements for irqbypass Oliver Upton
2025-02-26 18:58 ` [PATCH 0/4] KVM: arm64: Fixes/clarification for GICv4 vLPI injection Marc Zyngier
2025-02-26 21:27 ` 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=20250226183124.82094-1-oliver.upton@linux.dev \
--to=oliver.upton@linux.dev \
--cc=joey.gouly@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=suzuki.poulose@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.