[PULL v3 26/32] virtio: make seg_max virtqueue size dependent

2020-01-07 Thread Michael S. Tsirkin
From: Denis Plotnikov Before the patch, seg_max parameter was immutable and hardcoded to 126 (128 - 2) without respect to queue size. This has two negative effects: 1. when queue size is < 128, we have Virtio 1.1 specfication violation: (2.6.5.3.1 Driver Requirements) seq_max must be <= queue

[PULL v3 26/32] virtio: make seg_max virtqueue size dependent

2020-01-05 Thread Michael S. Tsirkin
From: Denis Plotnikov Before the patch, seg_max parameter was immutable and hardcoded to 126 (128 - 2) without respect to queue size. This has two negative effects: 1. when queue size is < 128, we have Virtio 1.1 specfication violation: (2.6.5.3.1 Driver Requirements) seq_max must be <= queue