From: sashiko-bot@kernel.org
To: mhonap@nvidia.com
Cc: kvm@vger.kernel.org, linux-cxl@vger.kernel.org
Subject: Re: [PATCH 1/2] vfio/pci: Find the start of an abutting extended capability
Date: Wed, 02 Dec 2026 09:21:28 +0000 [thread overview]
Message-ID: <sashiko-outbox-245288@kernel.org> (raw)
In-Reply-To: <20261202091105.1674275-2-mhonap@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] vfio/pci: missing Fixes trailer for abutting extended capability
start lookup
--
commit e03c58b536a2d7efffec688f5ba3ace062705c91
Author: Manish Honap <mhonap@nvidia.com>
> vfio/pci: Find the start of an abutting extended capability
>
> vfio_find_cap_start() walks through pci_config_map while the bytes hold
> same capability ID. When two DVSEC's are back-to-back, we cannot
> correctly tell what is the start of second capability. Due to this
> the offset into the second capability resolves to the start of first
> capability.
>
> For above case, walk the extended vconfig capability chain for
> determining the correct start of the abutting capabilities.
>
> Standard capabilities keep the walk back through the map.
>
> Signed-off-by: Manish Honap <mhonap@nvidia.com>
[Severity: Low]
This fixes extended capability start resolution in vfio_find_cap_start() when
extended capabilities with the same capability ID abut each other. Should
this include:
Fixes: 89e1f7d4c66d ("vfio: Add PCI device driver")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202091105.1674275-1-mhonap@nvidia.com?part=1
next prev parent reply other threads:[~2026-12-02 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 9:11 [PATCH 0/2] vfio/pci: CXL DVSEC config space fixes mhonap
2026-12-02 9:11 ` [PATCH 1/2] vfio/pci: Find the start of an abutting extended capability mhonap
2026-12-02 9:21 ` sashiko-bot [this message]
2026-12-02 9:11 ` [PATCH 2/2] vfio/pci: Make the CXL DVSEC read-only mhonap
2026-12-02 9:22 ` 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-245288@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=mhonap@nvidia.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.