vm-virtio: Add virtio-vsock skeleton

This is the first commit introducing the support for virtio-vsock.

This is based off of Firecracker commit
1e1cb6f8f8003e0bdce11d265f0feb23249a03f6

Fixes #102

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-09-03 15:12:58 -07:00
parent 69e27288a2
commit c48ca61417
2 changed files with 313 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ pub mod net;
mod pmem;
mod queue;
mod rng;
mod vsock;
pub mod transport;
pub mod vhost_user;
@@ -38,6 +39,7 @@ pub use self::net::*;
pub use self::pmem::*;
pub use self::queue::*;
pub use self::rng::*;
pub use self::vsock::*;
const DEVICE_INIT: u32 = 0x00;
const DEVICE_ACKNOWLEDGE: u32 = 0x01;