[PATCH] vfio/mdev: make VFIO_MDEV user-visible in Kconfig

From: JP Kobryn (Meta)

Date: Thu Mar 05 2026 - 18:43:36 EST


From: JP Kobryn <jp.kobryn@xxxxxxxxx>

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@xxxxxxxx>
Signed-off-by: JP Kobryn <jp.kobryn@xxxxxxxxx>
---
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