mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-24 00:41:16 +00:00
The Cloud Hyper HTTP server runs a synchronous, multi-threaded loop that receives HTTP requests and tries to call the corresponding endpoint handlers for the requests URIs. An endpoint handler will parse the HTTP request and potentially translate it into and IPC request. The handler holds an notifier and an mspc Sender for respectively notifying and sending the IPC payload to the VMM API server. The handler then waits for an API server response and translate it back into an HTTP response. The HTTP server is responsible for sending the reponse back to the caller. The HTTP server uses a static routes hash table that maps URIs to endpoint handlers. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
42 lines
1.2 KiB
TOML
42 lines
1.2 KiB
TOML
[package]
|
|
name = "vmm"
|
|
version = "0.1.0"
|
|
authors = ["The Cloud Hypervisor Authors"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = []
|
|
acpi = ["acpi_tables","devices/acpi", "arch/acpi"]
|
|
pci_support = ["pci", "vfio", "vm-virtio/pci_support"]
|
|
mmio_support = ["vm-virtio/mmio_support"]
|
|
cmos = ["devices/cmos"]
|
|
|
|
[dependencies]
|
|
acpi_tables = { path = "../acpi_tables", optional = true }
|
|
arch = { path = "../arch" }
|
|
devices = { path = "../devices" }
|
|
epoll = "4.1.0"
|
|
kvm-bindings = "0.1.1"
|
|
kvm-ioctls = { git = "https://github.com/rust-vmm/kvm-ioctls", branch = "master" }
|
|
lazy_static = "1.4.0"
|
|
libc = "0.2.62"
|
|
log = "0.4.8"
|
|
micro_http = { path = "../micro_http" }
|
|
net_util = { path = "../net_util" }
|
|
pci = {path = "../pci", optional = true}
|
|
qcow = { path = "../qcow" }
|
|
vfio = { path = "../vfio", optional = true }
|
|
vm-virtio = { path = "../vm-virtio" }
|
|
vm-allocator = { path = "../vm-allocator" }
|
|
vmm-sys-util = { git = "https://github.com/rust-vmm/vmm-sys-util" }
|
|
signal-hook = "0.1.10"
|
|
threadpool = "1.0"
|
|
|
|
[dependencies.linux-loader]
|
|
git = "https://github.com/rust-vmm/linux-loader"
|
|
features = ["elf", "bzimage"]
|
|
|
|
[dependencies.vm-memory]
|
|
git = "https://github.com/rust-vmm/vm-memory"
|
|
features = ["backend-mmap"]
|