vmm: Create vsock backend

This commit relies on the new vsock::unix module to create the backend
that will be used from the virtio-vsock device.

The concept of backend is interesting here as it would allow for a vhost
kernel backend to be plugged if that was needed someday.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-09-04 14:19:16 -07:00
parent 434a5d0edf
commit 475e487ac3
5 changed files with 41 additions and 9 deletions
+2 -1
View File
@@ -27,7 +27,7 @@ pub mod net;
mod pmem;
mod queue;
mod rng;
mod vsock;
pub mod vsock;
pub mod transport;
pub mod vhost_user;
@@ -49,6 +49,7 @@ const DEVICE_FEATURES_OK: u32 = 0x08;
const DEVICE_FAILED: u32 = 0x80;
const VIRTIO_F_VERSION_1: u32 = 32;
const VIRTIO_F_IN_ORDER: u32 = 35;
// Types taken from linux/virtio_ids.h
#[derive(Copy, Clone)]