> -----Original Message-----
> From: David Marchand <[email protected]>
> Sent: Thursday, March 2, 2023 11:48 AM
> To: [email protected]
> Cc: Semion Simma <[email protected]>; Yajun Wu <[email protected]>;
> Maxime Coquelin <[email protected]>; Chenbo Xia
> <[email protected]>; Morten Brørup <[email protected]>
> Subject: [PATCH] vhost: fix vring enable with VDPA
> 
> For VDPA devices, vq are not locked once the device has been configured.
> But we need to hold the vq lock to check if vhost async is enabled.
> 
> Combining VDPA and vhost async does not seem to make much sense, so
> prevent this combination, and only assert the lock is taken when VDPA is
> not configured on this vq.
> 
> Bugzilla ID: 1169
> Fixes: 4b02c2673757 ("vhost: annotate async accesses")
> 
> Signed-off-by: David Marchand <[email protected]>
> ---

Verified it resolves the issue, thanks David.

Tested-by: Ali Alnubani <[email protected]>

Reply via email to