mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +00:00
virtio-devices: vhost-user: Stop the vrings on a virtio reset
Whenever a virtio reset happens, the vhost-user backend should be notified that the vring should be stopped. This is performed by calling GET_VRING_BASE on the appropriate queue indexes. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
613c60fc6f
commit
5f98710471
@ -294,6 +294,11 @@ impl VhostUserHandle {
|
||||
self.vu
|
||||
.set_vring_enable(queue_index, false)
|
||||
.map_err(Error::VhostUserSetVringEnable)?;
|
||||
|
||||
let _ = self
|
||||
.vu
|
||||
.get_vring_base(queue_index)
|
||||
.map_err(Error::VhostUserGetVringBase)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user