Re: [PATCH] vhost: fix wrapping on control virtqueue rings

2025-05-16 Thread Maxime Coquelin
On 4/2/25 8:53 AM, David Marchand wrote: The idx field of a virtqueue available ring is increased by the driver regardless of the ring size. It is for the device to mask this index modulo the ring size (2.7.6 of the virtio 1.3 specification). The same applies to the used ring. Failing to mask

Re: [PATCH] vhost: fix wrapping on control virtqueue rings

2025-04-08 Thread Maxime Coquelin
On 4/2/25 8:53 AM, David Marchand wrote: The idx field of a virtqueue available ring is increased by the driver regardless of the ring size. It is for the device to mask this index modulo the ring size (2.7.6 of the virtio 1.3 specification). The same applies to the used ring. Failing to mask

[PATCH] vhost: fix wrapping on control virtqueue rings

2025-04-05 Thread David Marchand
The idx field of a virtqueue available ring is increased by the driver regardless of the ring size. It is for the device to mask this index modulo the ring size (2.7.6 of the virtio 1.3 specification). The same applies to the used ring. Failing to mask triggers: - crashes when popping message rece