Displaying 2 results from an estimated 2 matches for "vdpasim_vq_notify".
2023 Jan 29
0
[PATCH 1/2] vdpa_sim: not reset state in vdpasim_queue_ready
...;>
>>> diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c
>>> index cb88891b44a8..8839232a3fcb 100644
>>> --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c
>>> +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c
>>> @@ -66,6 +66,7 @@ static void vdpasim_vq_notify(struct vringh *vring)
>>> static void vdpasim_queue_ready(struct vdpasim *vdpasim, unsigned int idx)
>>> {
>>> struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx];
>>> + uint16_t last_avail_idx = vq->vring.last_avail_idx;
>>>
&...
2023 Feb 28
0
[PATCH v2] vdpa_sim: set last_used_idx as last_avail_idx in vdpasim_queue_ready
...vdpa/vdpa_sim/vdpa_sim.c
>@@ -68,6 +68,7 @@ static void vdpasim_queue_ready(struct vdpasim *vdpasim, unsigned int idx)
> (uintptr_t)vq->device_addr);
>
> vq->vring.last_avail_idx = last_avail_idx;
>+ vq->vring.last_used_idx = last_avail_idx;
> vq->vring.notify = vdpasim_vq_notify;
> }
>
>-- 2.31.1
>
If you need to resend, I'd add a comment in the code following the
commit description.
Anyway, the patch LGTM:
Reviewed-by: Stefano Garzarella <sgarzare at redhat.com>
Thanks,
Stefano