Re: [PATCH] virtio: Fix packed virtqueue used_idx mask

2023-07-25 Thread Hanna Czenczek
On 25.07.23 16:04, German Maglione wrote: On Fri, Jul 21, 2023 at 3:51 PM Hanna Czenczek wrote: virtio_queue_packed_set_last_avail_idx() is used by vhost devices to set the internal queue indices to what has been reported by the vhost back-end through GET_VRING_BASE.  For pack

Re: [PATCH] virtio: Fix packed virtqueue used_idx mask

2023-07-25 Thread German Maglione
On Fri, Jul 21, 2023 at 3:51 PM Hanna Czenczek wrote: > > virtio_queue_packed_set_last_avail_idx() is used by vhost devices to set > the internal queue indices to what has been reported by the vhost > back-end through GET_VRING_BASE. For packed virtqueues, this > 32-bit value is expected to conta

Re: [PATCH] virtio: Fix packed virtqueue used_idx mask

2023-07-25 Thread German Maglione
On Fri, Jul 21, 2023 at 3:51 PM Hanna Czenczek wrote: > virtio_queue_packed_set_last_avail_idx() is used by vhost devices to set > the internal queue indices to what has been reported by the vhost > back-end through GET_VRING_BASE. For packed virtqueues, this > 32-bit value is expected to contai

[PATCH] virtio: Fix packed virtqueue used_idx mask

2023-07-21 Thread Hanna Czenczek
virtio_queue_packed_set_last_avail_idx() is used by vhost devices to set the internal queue indices to what has been reported by the vhost back-end through GET_VRING_BASE. For packed virtqueues, this 32-bit value is expected to contain both the device's internal avail and used indices, as well as