mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
vm-virtio: vhost-user: Set the right vring size
The vhost-user implementation was always passing the maximum size supported by the virtqueues to the backend, but this is obviously wrong as it must pass the size being set by the driver running in the guest. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
a2f3da3488
commit
f06b2aaaa7
@ -54,7 +54,7 @@ pub fn setup_vhost_user_vring(
|
||||
let mut vu_interrupt_list = Vec::new();
|
||||
|
||||
for (queue_index, queue) in queues.into_iter().enumerate() {
|
||||
vu.set_vring_num(queue_index, queue.get_max_size())
|
||||
vu.set_vring_num(queue_index, queue.actual_size())
|
||||
.map_err(Error::VhostUserSetVringNum)?;
|
||||
|
||||
let config_data = VringConfigData {
|
||||
|
Loading…
x
Reference in New Issue
Block a user