* [PATCH] s390/vfio: Allow untainted use of driver_override
[not found] <DMYH4ED3GWDO.29DGXPK4M82VR@kernel.org>
@ 2026-11-19 5:15 ` Alex Williamson
2026-11-19 5:22 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Alex Williamson @ 2026-11-19 5:15 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Alex Williamson, Greg Kroah-Hartman, Jonathan Corbet, Shuah Khan,
Randy Dunlap, Rafael J . Wysocki, Danilo Krummrich, Johan Hovold,
Steven Rostedt, Masami Hiramatsu, Mathieu Desnoyers,
David Lechner, Armin Wolf, Thierry Reding, Mike Rapoport,
Arnd Bergmann, Karl Mehltretter, Paul E . McKenney,
Borislav Petkov, Dapeng Mi, Marco Elver, Ethan Nelson-Moore,
Jeff Layton, Bradley Morgan, Andrew Morton, Petr Mladek,
Pnina Feder, Mete Durlu, Aaron Tomlin, Rio, Feng Tang, linux-doc,
linux-kernel, driver-core, linux-trace-kernel, Mark Brown,
Bjorn Helgaas, Tony Krowiak, Jason Herne, Eric Farman,
Matthew Rosato, Halil Pasic, linux-s390
The vfio_ap and vfio_ccw drivers bind devices through driver_override.
With the introduction of the support_driver_override flag in the core
driver struct, it's now required for drivers to declare themselves as
driver_override compatible, otherwise driver_override bindings will be
denied or generate a kernel taint.
Set the support_driver_override flag on the vfio_ap and vfio_ccw driver
structs.
Cc: Tony Krowiak <akrowiak@linux.ibm.com>
Cc: Jason Herne <jjherne@linux.ibm.com>
Cc: Eric Farman <farman@linux.ibm.com>
Cc: Matthew Rosato <mjrosato@linux.ibm.com>
Cc: Halil Pasic <pasic@linux.ibm.com>
Cc: linux-s390@vger.kernel.org
Signed-off-by: Alex Williamson <alex@shazbot.org>
---
Uwe, this should complete the vfio drivers needing driver override,
covering the s390 specific drivers. Thanks,
Alex
drivers/s390/cio/vfio_ccw_drv.c | 1 +
drivers/s390/crypto/vfio_ap_drv.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/s390/cio/vfio_ccw_drv.c b/drivers/s390/cio/vfio_ccw_drv.c
index 7546bd137e4e..77765cde87f7 100644
--- a/drivers/s390/cio/vfio_ccw_drv.c
+++ b/drivers/s390/cio/vfio_ccw_drv.c
@@ -375,6 +375,7 @@ static struct css_driver vfio_ccw_sch_driver = {
.drv = {
.name = "vfio_ccw",
.owner = THIS_MODULE,
+ .support_driver_override = true,
},
.subchannel_type = vfio_ccw_sch_ids,
.irq = vfio_ccw_sch_irq,
diff --git a/drivers/s390/crypto/vfio_ap_drv.c b/drivers/s390/crypto/vfio_ap_drv.c
index 8e69ed286bb9..2d47dc643269 100644
--- a/drivers/s390/crypto/vfio_ap_drv.c
+++ b/drivers/s390/crypto/vfio_ap_drv.c
@@ -62,6 +62,7 @@ static struct ap_driver vfio_ap_drv = {
.on_config_changed = vfio_ap_on_cfg_changed,
.on_scan_complete = vfio_ap_on_scan_complete,
.ids = ap_queue_ids,
+ .driver.support_driver_override = true,
};
static void vfio_ap_matrix_dev_release(struct device *dev)
--
2.54.0
^ permalink raw reply related [flat|nested] 2+ messages in thread