mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-04 04:25:45 +00:00
6d27cfb3b6
In order to provide connectivity through network interface between host and guest, this patch introduces the virtio-net backend. This code is based on Firecracker commit d4a89cdc0bd2867f821e3678328dabad6dd8b767 It is a trimmed down version of the original files as it removes the rate limiter support. It has been ported to support vm-memory crate and the epoll handler has been modified in order to run a dedicated epoll loop from the device itself. This epoll loop runs in its own dedicated thread. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
24 lines
607 B
TOML
24 lines
607 B
TOML
[package]
|
|
name = "vm-virtio"
|
|
version = "0.1.0"
|
|
authors = ["Samuel Ortiz <sameo@linux.intel.com>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
byteorder = "=1.2.1"
|
|
devices = { path = "../devices" }
|
|
epoll = "=4.0.1"
|
|
libc = ">=0.2.39"
|
|
log = "*"
|
|
net_gen = { path = "../net_gen" }
|
|
net_util = { path = "../net_util" }
|
|
pci = { path = "../pci" }
|
|
tempfile = ">=3.0.2"
|
|
virtio-bindings = { path = "../virtio-bindings" }
|
|
vm-allocator = { path = "../vm-allocator" }
|
|
vmm-sys-util = { git = "https://github.com/sameo/vmm-sys-util" }
|
|
|
|
[dependencies.vm-memory]
|
|
git = "https://github.com/rust-vmm/vm-memory"
|
|
features = ["backend-mmap"]
|