From: Alex Williamson <alex@shazbot.org>
To: Harald Freudenberger <freude@linux.ibm.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Eric Farman" <farman@linux.ibm.com>,
"Matthew Rosato" <mjrosato@linux.ibm.com>,
"Tony Krowiak" <akrowiak@linux.ibm.com>,
"Jason Herne" <jjherne@linux.ibm.com>,
"Holger Dengler" <dengler@linux.ibm.com>,
"Vineeth Vijayan" <vneethv@linux.ibm.com>,
"Peter Oberparleiter" <oberpar@linux.ibm.com>,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
linux-s390@vger.kernel.org, kvm@vger.kernel.org,
alex@shazbot.org
Subject: Re: [PATCH v2 04/10] s390/vfio: Allow untainted use of driver_override
Date: Mon, 23 Nov 2026 07:48:00 -0700 [thread overview]
Message-ID: <20261123074800.3b8904a6@shazbot.org> (raw)
In-Reply-To: <7ff78d9a05bbec91fd494938508c1567@linux.ibm.com>
On Mon, 23 Nov 2026 14:55:36 +0100
Harald Freudenberger <freude@linux.ibm.com> wrote:
> On 2026-11-20 12:11, Uwe Kleine-König wrote:
> > From: Alex Williamson <alex@shazbot.org>
> >
> > 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.
> >
> > Signed-off-by: Alex Williamson <alex@shazbot.org>
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> > ---
> > 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)
>
> Please add the s390 zcrypt device driver ("cex4queue") to this patch:
>
> diff --git a/drivers/s390/crypto/zcrypt_cex4.c
> b/drivers/s390/crypto/zcrypt_cex4.c
> index 43871cd89b04..2765f82f32d6 100644
> --- a/drivers/s390/crypto/zcrypt_cex4.c
> +++ b/drivers/s390/crypto/zcrypt_cex4.c
> @@ -746,6 +746,7 @@ static void zcrypt_cex4_queue_remove(struct
> ap_device *ap_dev)
> }
>
> static struct ap_driver zcrypt_cex4_queue_driver = {
> + .driver.support_driver_override = true,
> .probe = zcrypt_cex4_queue_probe,
> .remove = zcrypt_cex4_queue_remove,
> .ids = zcrypt_cex4_queue_ids,
>
> and when done add
> Acked-by: Harald Freudenberger <freude@linux.ibm.com>
That's not a vfio driver, it needs to make its own case for why it
needs to support driver_override. Thanks,
Alex
next prev parent reply other threads:[~2026-11-23 14:48 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 11:11 [PATCH v2 00/10] driver core: Disable driver overriding by default Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 01/10] " Uwe Kleine-König
2026-11-20 18:59 ` Jason Gunthorpe
2026-11-20 20:07 ` Michael Kelley
2026-11-20 11:11 ` [PATCH v2 02/10] PCI: Allow untainted driver_override for PCI stub drivers Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 03/10] vfio: Allow untainted use of driver_override Uwe Kleine-König
2026-11-21 0:47 ` Yao Yuan
2026-11-21 12:47 ` Pranjal Shrivastava
2026-11-23 8:52 ` liulongfang
2026-11-23 10:06 ` Ioana Ciornei
2026-11-20 11:11 ` [PATCH v2 04/10] s390/vfio: " Uwe Kleine-König
2026-11-20 11:58 ` Harald Freudenberger
2026-11-20 14:05 ` Uwe Kleine-König
2026-11-23 16:31 ` Christian Borntraeger
2026-11-26 10:01 ` Uwe Kleine-König
2026-11-27 18:38 ` Peter Oberparleiter
2026-12-01 9:23 ` Christian Borntraeger
2026-11-23 13:55 ` Harald Freudenberger
2026-11-23 14:48 ` Alex Williamson [this message]
2026-11-30 8:13 ` Harald Freudenberger
2026-11-20 11:11 ` [PATCH v2 05/10] uio: " Uwe Kleine-König
2026-11-20 20:08 ` Michael Kelley
2026-11-20 11:11 ` [PATCH v2 06/10] spi: spidev: " Uwe Kleine-König
2026-11-20 11:35 ` Mark Brown
2026-11-20 11:11 ` [PATCH v2 07/10] clk: imx: scu: " Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 08/10] remoteproc: " Uwe Kleine-König
2026-11-20 15:13 ` Mathieu Poirier
2026-11-20 11:11 ` [PATCH v2 09/10] slimbus: qcom-ngd-ctrl: " Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 10/10] ASoC: samsung: i2s: " Uwe Kleine-König
2026-11-21 1:16 ` [PATCH v2 00/10] driver core: Disable driver overriding by default Danilo Krummrich
2026-11-26 1:57 ` Gary Guo
2026-11-26 2:13 ` Gary Guo
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=20261123074800.3b8904a6@shazbot.org \
--to=alex@shazbot.org \
--cc=agordeev@linux.ibm.com \
--cc=akrowiak@linux.ibm.com \
--cc=dengler@linux.ibm.com \
--cc=farman@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=hca@linux.ibm.com \
--cc=jjherne@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mjrosato@linux.ibm.com \
--cc=oberpar@linux.ibm.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=vneethv@linux.ibm.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 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.