vpm_find_vqs incorrectly accepted the host provided queue size with no regard to iPXE's internal limitations. Virtio 1.0 makes it possible for the driver to override the queue size to reduce memory requirements and iPXE is a great use case for this feature. Also removing the extra vq->vring.num assignment which is already handled in vring_init. Signed-off-by: Ladi Prosek <lprosek@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
358 |
|
358 |
|
359 |
|
359 |
|
360 |
|
360 |
|
|
361 |
|
|
|
362 |
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
|
|
|
366 |
|
|
|
367 |
|
|
361 |
|
368 |
|
362 |
|
369 |
|
363 |
|
370 |
|
364 |
|
371 |
|
365 |
|
372 |
|
366 |
|
|
|
367 |
|
373 |
|
368 |
|
374 |
|
369 |
|
375 |
|
|
|
||
95 |
|
95 |
|
96 |
|
96 |
|
97 |
|
97 |
|
98 |
|
|
|
|
98 |
|
|
99 |
|
99 |
|
100 |
|
100 |
|
101 |
|
101 |
|
|
|
||
103 |
|
103 |
|
104 |
|
104 |
|
105 |
|
105 |
|
106 |
|
|
|
|
106 |
|
|
107 |
|
107 |
|
108 |
|
108 |
|
109 |
|
109 |
|
110 |
|
110 |
|
111 |
|
111 |
|
112 |
|
|
|
|
112 |
|
|
113 |
|
113 |
|
114 |
|
114 |
|
115 |
|
115 |
|