virtio-devices: Enforce a minimum number of queues

Even though the driver can provide fewer queues than those advertised
for some device types their is a minimum number that is required for
operation.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-01-19 06:11:07 +00:00
committed by Sebastien Boeuf
parent a105089702
commit c90f77e399
14 changed files with 23 additions and 0 deletions
+1
View File
@@ -337,6 +337,7 @@ where
avail_features,
paused_sync: Some(Arc::new(Barrier::new(2))),
queue_sizes: QUEUE_SIZES.to_vec(),
min_queues: NUM_QUEUES as u16,
..Default::default()
},
id,