public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "JP Kobryn (Meta)" <jp.kobryn@linux.dev>
To: jp.kobryn@linux.dev, kwankhede@nvidia.com, alex@shazbot.org
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	malmond@meta.com, kernel-team@meta.com
Subject: [PATCH] vfio/mdev: make VFIO_MDEV user-visible in Kconfig
Date: Thu,  5 Mar 2026 15:35:26 -0800	[thread overview]
Message-ID: <20260305233526.32607-1-jp.kobryn@linux.dev> (raw)

From: JP Kobryn <jp.kobryn@linux.dev>

VFIO_MDEV is currently hidden and only enabled via select by in-tree
consumers. Out-of-tree drivers such as the NVIDIA vGPU rely on the mdev
framework but have no way to trigger its selection.

Add a description and help text to make VFIO_MDEV visible and directly
selectable.

Suggested-by: Matthew Almond <malmond@meta.com>
Signed-off-by: JP Kobryn <jp.kobryn@linux.dev>
---
 drivers/vfio/mdev/Kconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/vfio/mdev/Kconfig b/drivers/vfio/mdev/Kconfig
index e5fb84e07965..642d46b7aa4b 100644
--- a/drivers/vfio/mdev/Kconfig
+++ b/drivers/vfio/mdev/Kconfig
@@ -1,4 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
 config VFIO_MDEV
-	tristate
+	tristate "Mediated device driver framework"
+	help
+	  Provides the mediated device (mdev) framework, which allows
+	  physical devices to create virtual instances for use with
+	  VFIO-based passthrough.
-- 
2.47.3


             reply	other threads:[~2026-03-05 23:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-05 23:35 JP Kobryn (Meta) [this message]
2026-03-09 15:33 ` [PATCH] vfio/mdev: make VFIO_MDEV user-visible in Kconfig Christoph Hellwig

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=20260305233526.32607-1-jp.kobryn@linux.dev \
    --to=jp.kobryn@linux.dev \
    --cc=alex@shazbot.org \
    --cc=kernel-team@meta.com \
    --cc=kvm@vger.kernel.org \
    --cc=kwankhede@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=malmond@meta.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