mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: vhost_user: net: Move control queue back
We thought we could move the control queue to the backend as it was making some good sense. Unfortunately, doing so was a wrong design decision as it broke the compatibility with OVS-DPDK backend. This is why this commit moves the control queue back to the VMM side, meaning an additional thread is being run for handling the communication with the guest. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
6c245f6cf1
commit
e9cc23ea94
@@ -2039,8 +2039,13 @@ impl DeviceManager {
|
||||
VhostMode::Server => true,
|
||||
};
|
||||
let vhost_user_net_device = Arc::new(Mutex::new(
|
||||
match virtio_devices::vhost_user::Net::new(id.clone(), net_cfg.mac, vu_cfg, server)
|
||||
{
|
||||
match virtio_devices::vhost_user::Net::new(
|
||||
id.clone(),
|
||||
net_cfg.mac,
|
||||
vu_cfg,
|
||||
server,
|
||||
self.seccomp_action.clone(),
|
||||
) {
|
||||
Ok(vun_device) => vun_device,
|
||||
Err(e) => {
|
||||
return Err(DeviceManagerError::CreateVhostUserNet(e));
|
||||
|
||||
Reference in New Issue
Block a user