> -----Original Message----- > From: zhenwei pi [mailto:pizhen...@bytedance.com] > Sent: Thursday, September 28, 2023 9:24 AM > To: Michael S. Tsirkin <m...@redhat.com>; Gonglei (Arei) > <arei.gong...@huawei.com> > Cc: Halil Pasic <pa...@linux.ibm.com>; Herbert Xu > <herb...@gondor.apana.org.au>; linux-cry...@vger.kernel.org; Marc > Hartmayer <mhart...@linux.ibm.com>; Jason Wang > <jasow...@redhat.com>; virtualization@lists.linux-foundation.org; > linux-ker...@vger.kernel.org; Cornelia Huck <coh...@redhat.com> > Subject: Re: Re: [PATCH] crypto: virtio-crypto: call finalize with bh disabled > > Hi Michael & Lei, > > I volunteer to fix this by workqueue. > Thanks, patches are always welcome. > I also notice that device drivers use workqueue to handle config-changed again > and again, what about re-implement __virtio_config_changed() by kicking > workqueue instead? > Personally, I prefer to implement it in the device driver case by case. some devices want to work in the upper half of the interrupt context, such as virtio-mem. > By the way, balloon dirvers uses > spin_lock_irqsave/spin_unlock_irqrestore in config-changed callback, do it > handle correctly? > It's ok. The critical resource protected is global system_freezable_wq. Regards, -Gonglei > On 9/27/23 21:25, Halil Pasic wrote: > > On Wed, 27 Sep 2023 09:24:09 +0000 > > "Gonglei (Arei)" <arei.gong...@huawei.com> wrote: > > > >>> On a related note, config change callback is also handled > >>> incorrectly in this driver, it takes a mutex from interrupt context. > >> > >> Good catch. Will fix it. > > > > Thanks Gonglei! Sorry I first misunderstood this as a problem within > > the virtio-ccw driver, but it is actually about virtio-crypto. Thanks > > for fixing this! > > > > Regards, > > Halil > > -- > zhenwei pi _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
RE: Re: [PATCH] crypto: virtio-crypto: call finalize with bh disabled
Gonglei (Arei) via Virtualization Wed, 27 Sep 2023 19:03:34 -0700
- [PATCH] crypto: virtio-crypto: call fina... Gonglei (Arei) via Virtualization
- Re: [PATCH] crypto: virtio-crypto: ... Halil Pasic
- Re: [PATCH] crypto: virtio-cryp... Michael S. Tsirkin
- RE: [PATCH] crypto: virtio-... Gonglei (Arei) via Virtualization
- Re: [PATCH] crypto: vir... Halil Pasic
- Re: Re: [PATCH] cr... zhenwei pi via Virtualization
- RE: Re: [PATCH... Gonglei (Arei) via Virtualization
- Re: [PATCH] crypto: virtio-... Halil Pasic
- RE: [PATCH] crypto: virtio-cryp... Gonglei (Arei) via Virtualization
- Re: [PATCH] crypto: virtio-cryp... Cornelia Huck
- Re: [PATCH] crypto: virtio-... Halil Pasic
- Re: [PATCH] crypto: vir... Cornelia Huck
- Re: [PATCH] crypto... Halil Pasic
- Re: [PATCH] crypto: virtio-cryp... Halil Pasic
- RE: [PATCH] crypto: virtio-cryp... Gonglei (Arei) via Virtualization
- Re: [PATCH] crypto: virtio-... Herbert Xu