Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] vfio: build failure due to missing support_driver_override in device_driver - [Medium] vfio: missing support_driver_override on s390 vfio_ccw and vfio_ap drivers --
commit e1a4bdaaf4e34e9a150096261c67507d2bd63625 Author: Alex Williamson <[email protected]> vfio: Allow untainted use of driver_override This commit sets the support_driver_override flag on the embedded device driver structures across vfio drivers so that binding devices via driver_override continues to work without tainting the kernel. > Set the support_driver_override flag on the driver struct across all > vfio drivers. [Severity: Medium] Should the s390 vfio drivers outside drivers/vfio/ also set support_driver_override? Both vfio_ccw_sch_driver in drivers/s390/cio/vfio_ccw_drv.c and vfio_ap_drv in drivers/s390/crypto/vfio_ap_drv.c bind to devices via device_match_driver_override() on css_bus_type and ap_bus_type, so omitting them will deny or taint driver_override bindings for vfio_ccw subchannels and vfio_ap queues. > diff --git a/drivers/vfio/cdx/main.c b/drivers/vfio/cdx/main.c > index 28dc8c8256006..fb7679bf92fd3 100644 > --- a/drivers/vfio/cdx/main.c > +++ b/drivers/vfio/cdx/main.c > @@ -358,6 +358,7 @@ static struct cdx_driver vfio_cdx_driver = { > .match_id_table = vfio_cdx_table, > .driver = { > .name = "vfio-cdx", > + .support_driver_override = true, > }, > .driver_managed_dma = true, > }; [Severity: High] Is this missing the prerequisite driver-core patch that adds support_driver_override to struct device_driver? In this tree, struct device_driver in include/linux/device/driver.h has no support_driver_override member, so building any of the 13 modified vfio drivers fails with an unknown field in initializer error. -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
