Linux s390 Architecture development
 help / color / mirror / Atom feed
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

  reply	other threads:[~2026-11-23 14:48 UTC|newest]

Thread overview: 7+ 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 04/10] s390/vfio: Allow untainted use of driver_override Uwe Kleine-König
2026-11-20 11:58   ` Harald Freudenberger
2026-11-20 14:05     ` Uwe Kleine-König
2026-11-23 13:55   ` Harald Freudenberger
2026-11-23 14:48     ` Alex Williamson [this message]
2026-11-21  1:16 ` [PATCH v2 00/10] driver core: Disable driver overriding by default Danilo Krummrich

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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox