From: sashiko-bot@kernel.org
To: "Narayana Murty N" <nnmlinux@linux.ibm.com>, kvm@vger.kernel.org
Subject: Re: [PATCH v2 2/3] KVM: PPC: Book3S: Synchronize TCE hcalls with IOMMU table detach
Date: Thu, 26 Nov 2026 09:03:18 +0000 [thread overview]
Message-ID: <sashiko-outbox-235073@kernel.org> (raw)
In-Reply-To: <20261126085008.34532-5-nnmlinux@linux.ibm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: PPC: Book3S: missing Fixes trailer for TCE hcall detach
race fix
--
commit bff0a1814a06b4153499fc640facd0cd8bd3623e
Author: Narayana Murty N <nnmlinux@linux.ibm.com>
> KVM: PPC: Book3S: Synchronize TCE hcalls with IOMMU table detach
>
> TCE hypercalls traverse stt->iommu_tables while VFIO detach may
> remove attachments and return hardware window ownership before
> in-flight TCE updates complete.
>
> Use the existing kvm->srcu read-side protection for IOMMU table
> traversal and synchronize SRCU readers during detach.
>
> This ensures that TCE hardware updates complete before the
> detached window is returned to VFIO.
>
> The following patch addresses safe reclamation of child entries
> accessed by these SRCU readers.
>
> Signed-off-by: Narayana Murty N <nnmlinux@linux.ibm.com>
[Severity: Low]
This fixes a race between in-flight TCE hypercalls and IOMMU group detach
introduced in 121f80ba68f1 ("KVM: PPC: VFIO: Add in-kernel acceleration
for VFIO"). Should this include:
Fixes: 121f80ba68f1 ("KVM: PPC: VFIO: Add in-kernel acceleration for VFIO")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126084351.32375-5-nnmlinux@linux.ibm.com?part=2
next prev parent reply other threads:[~2026-11-26 9:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 8:43 [PATCH v2 0/3] KVM: PPC: Book3S: Protect TCE IOMMU table walks with RCU Narayana Murty N
2026-11-26 8:50 ` [PATCH v2 1/3] KVM: PPC: Book3S: Hold a reference to sPAPR TCE tables during hcalls Narayana Murty N
2026-11-26 8:50 ` [PATCH v2 2/3] KVM: PPC: Book3S: Synchronize TCE hcalls with IOMMU table detach Narayana Murty N
2026-11-26 9:03 ` sashiko-bot [this message]
2026-11-26 8:50 ` [PATCH v2 3/3] KVM: PPC: Book3S: Free child IOMMU tables after an SRCU grace period Narayana Murty N
2026-11-26 9:03 ` [PATCH v2 1/3] KVM: PPC: Book3S: Hold a reference to sPAPR TCE tables during hcalls sashiko-bot
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=sashiko-outbox-235073@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=nnmlinux@linux.ibm.com \
--cc=sashiko-reviews@lists.linux.dev \
/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.