All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jayant Shekhar" <jayant.shekhar@oss.qualcomm.com>
Cc: virtualization@lists.linux.dev, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH 2/3] virtio: Add vendor-specific device ID
Date: Thu, 26 Nov 2026 06:29:36 +0000	[thread overview]
Message-ID: <sashiko-outbox-234855@kernel.org> (raw)
In-Reply-To: <20261126-jshekhar-qcom-virtio-dcp-v1-2-7b49bda74916@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] virtio: unallocated VIRTIO_ID_VENDOR added to UAPI
  virtio_ids.h
--

commit 913884946279be0d6a387cfae4fb22c6ba81e67d
Author: Jayant Shekhar <jayant.shekhar@oss.qualcomm.com>

virtio: Add vendor-specific device ID

This commit defines VIRTIO_ID_VENDOR (52) in include/uapi/linux/virtio_ids.h
for generic vendor-specific VirtIO devices.

> diff --git a/include/uapi/linux/virtio_ids.h b/include/uapi/linux/virtio_ids.h
> index f9056af0c6223..9a8b6a6a03a48 100644
> --- a/include/uapi/linux/virtio_ids.h
> +++ b/include/uapi/linux/virtio_ids.h
> @@ -70,6 +70,7 @@
>  #define VIRTIO_ID_GPIO			41 /* virtio gpio */
>  #define VIRTIO_ID_SPI			45 /* virtio spi */
>  #define VIRTIO_ID_MEDIA			48 /* virtio media */
> +#define VIRTIO_ID_VENDOR		52 /* virtio vendor-specific device */

[Severity: Medium]
Should VIRTIO_ID_VENDOR be added to include/uapi/linux/virtio_ids.h before
device ID 52 is reserved in the VirtIO specification?

As noted in the commit message, value 52 is only proposed for VirtIO TC
allocation.  Documentation/driver-api/virtio/writing_virtio_drivers.rst
requires device IDs to be at least reserved in the VirtIO specification
before being added to include/uapi/linux/virtio_ids.h, because exposing an
unallocated ID in the UAPI header risks an ABI conflict if the VirtIO TC
assigns 52 to another device type or assigns a different ID here.

In addition, temporary merge-blocking notes and commentary about future
driver matching belong below the --- tearline rather than in the permanent
commit changelog.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-jshekhar-qcom-virtio-dcp-v1-0-7b49bda74916@oss.qualcomm.com?part=2

  parent reply	other threads:[~2026-11-26  6:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  6:23 [PATCH 0/3] virtio: Add Qualcomm Display Co-Processor transport wrapper Jayant Shekhar
2026-11-26  6:23 ` [PATCH 1/3] dt-bindings: virtio: Add Qualcomm DCP transport Jayant Shekhar
2026-11-26  6:36   ` sashiko-bot
2026-11-29  9:55   ` Krzysztof Kozlowski
2026-11-26  6:24 ` [PATCH 2/3] virtio: Add vendor-specific device ID Jayant Shekhar
2026-11-26  6:27   ` Michael S. Tsirkin
2026-11-26  6:29   ` sashiko-bot [this message]
2026-11-26  6:24 ` [PATCH 3/3] virtio: Add Qualcomm VirtIO transport wrapper Jayant Shekhar
2026-11-26  6:35   ` Michael S. Tsirkin
2026-11-26 10:03     ` Jayant Shekhar
2026-11-26 11:41       ` Michael S. Tsirkin
2026-11-26 12:18         ` Jayant Shekhar
2026-11-26  6:44   ` sashiko-bot
2026-11-27 13:20   ` Stjepan Poljak

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-234855@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=eperezma@redhat.com \
    --cc=jayant.shekhar@oss.qualcomm.com \
    --cc=mst@redhat.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=virtualization@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.