[PATCH v2] vhost: add runtime locking check in unsafe APIs
Hu, Jiayu
jiayu.hu at intel.com
Wed May 11 09:49:16 CEST 2022
> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Wednesday, May 11, 2022 3:35 PM
> To: Maxime Coquelin <maxime.coquelin at redhat.com>
> Cc: dev <dev at dpdk.org>; Xia, Chenbo <chenbo.xia at intel.com>; Ding, Xuan
> <xuan.ding at intel.com>; Hu, Jiayu <jiayu.hu at intel.com>; Jiang, Cheng1
> <cheng1.jiang at intel.com>; Pai G, Sunil <sunil.pai.g at intel.com>
> Subject: Re: [PATCH v2] vhost: add runtime locking check in unsafe APIs
>
> On Wed, May 11, 2022 at 8:58 AM Maxime Coquelin
> <maxime.coquelin at redhat.com> wrote:
> >
> > This patch adds runtime checks in unsafe Vhost async APIs, to ensure
> > the access lock is taken.
> >
> > The detection won't work every time, as another thread could take the
> > lock, but it would help to detect misuse of these unsafe API.
> >
> > Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
>
> Reviewed-by: David Marchand <david.marchand at redhat.com>
Reviewed-by: Jiayu Hu <jiayu.hu at intel.com>
Thanks,
Jiayu
>
>
> --
> David Marchand
More information about the dev
mailing list