[PATCH v2] vhost: add runtime locking check in unsafe APIs

David Marchand david.marchand at redhat.com
Wed May 11 09:35:25 CEST 2022


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>


-- 
David Marchand



More information about the dev mailing list