Re: [PATCH 2/6] libqos/virtio.c: fix 'avail_event' offset in qvring_init()

2024-02-16 Thread Thomas Huth
On 13/02/2024 20.17, Daniel Henrique Barboza wrote: In qvring_init() we're writing vq->used->avail_event at "vq->used + 2 + array_size". The struct pointed by vq->used is, from virtio_ring.h Linux header): * // A ring of used descriptor heads with free-running index. * __virtio16 us

Re: [PATCH 2/6] libqos/virtio.c: fix 'avail_event' offset in qvring_init()

2024-02-14 Thread Alistair Francis
On Wed, Feb 14, 2024 at 5:18 AM Daniel Henrique Barboza wrote: > > In qvring_init() we're writing vq->used->avail_event at "vq->used + 2 + > array_size". The struct pointed by vq->used is, from virtio_ring.h > Linux header): > > * // A ring of used descriptor heads with free-running index.

[PATCH 2/6] libqos/virtio.c: fix 'avail_event' offset in qvring_init()

2024-02-13 Thread Daniel Henrique Barboza
In qvring_init() we're writing vq->used->avail_event at "vq->used + 2 + array_size". The struct pointed by vq->used is, from virtio_ring.h Linux header): * // A ring of used descriptor heads with free-running index. * __virtio16 used_flags; * __virtio16 used_idx; * struct