[PATCH] vhost: fix vring addr update with vDPA

David Marchand david.marchand at redhat.com
Tue Mar 5 14:28:13 CET 2024


On Tue, Mar 5, 2024 at 10:13 AM David Marchand
<david.marchand at redhat.com> wrote:
>
> For vDPA devices, vq are not locked once the device has been configured
> at runtime.
>
> On the other hand, we need to hold the vq lock to evaluate vq->access_ok,
> invalidate vring addresses and translate them.
>
> Move vring address update earlier and, when vDPA is configured, skip parts
> which expect lock to be taken.
>
> Bugzilla ID: 1394
> Fixes: 741dc052eaf9 ("vhost: annotate virtqueue access checks")
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Recheck-request: iol-testing


-- 
David Marchand



More information about the dev mailing list