2019-02-22 16:04:35 +00:00
|
|
|
[package]
|
|
|
|
authors = ["The Cloud Hypervisor Authors"]
|
2022-04-08 15:11:04 +00:00
|
|
|
edition = "2021"
|
2024-05-08 08:56:31 +00:00
|
|
|
name = "vmm"
|
|
|
|
version = "0.1.0"
|
2019-02-22 16:04:35 +00:00
|
|
|
|
2019-09-03 13:54:06 +00:00
|
|
|
[features]
|
2023-03-22 21:03:02 +00:00
|
|
|
dbus_api = ["blocking", "futures", "zbus"]
|
2024-05-08 08:56:31 +00:00
|
|
|
default = []
|
2024-07-17 12:09:01 +00:00
|
|
|
dhat-heap = ["dhat"] # For heap profiling
|
2024-06-18 14:22:36 +00:00
|
|
|
guest_debug = ["gdbstub", "gdbstub_arch", "kvm"]
|
|
|
|
igvm = ["dep:igvm", "hex", "igvm_defs", "mshv-bindings", "range_map_vec"]
|
2023-07-12 02:24:28 +00:00
|
|
|
io_uring = ["block/io_uring"]
|
2024-07-17 12:09:01 +00:00
|
|
|
kvm = [
|
|
|
|
"arch/kvm",
|
|
|
|
"hypervisor/kvm",
|
|
|
|
"pci/kvm",
|
|
|
|
"vfio-ioctls/kvm",
|
|
|
|
"vm-device/kvm",
|
|
|
|
]
|
2024-06-18 14:22:36 +00:00
|
|
|
mshv = ["hypervisor/mshv", "pci/mshv", "vfio-ioctls/mshv", "vm-device/mshv"]
|
devices: Add pvmemcontrol device
Pvmemcontrol provides a way for the guest to control its physical memory
properties, and enables optimizations and security features. For
example, the guest can provide information to the host where parts of a
hugepage may be unbacked, or sensitive data may not be swapped out, etc.
Pvmemcontrol allows guests to manipulate its gPTE entries in the SLAT,
and also some other properties of the memory map the back's host memory.
This is achieved by using the KVM_CAP_SYNC_MMU capability. When this
capability is available, the changes in the backing of the memory region
on the host are automatically reflected into the guest. For example, an
mmap() or madvise() that affects the region will be made visible
immediately.
There are two components of the implementation: the guest Linux driver
and Virtual Machine Monitor (VMM) device. A guest-allocated shared
buffer is negotiated per-cpu through a few PCI MMIO registers, the VMM
device assigns a unique command for each per-cpu buffer. The guest
writes its pvmemcontrol request in the per-cpu buffer, then writes the
corresponding command into the command register, calling into the VMM
device to perform the pvmemcontrol request.
The synchronous per-cpu shared buffer approach avoids the kick and busy
waiting that the guest would have to do with virtio virtqueue transport.
The Cloud Hypervisor component can be enabled with --pvmemcontrol.
Co-developed-by: Stanko Novakovic <stanko@google.com>
Co-developed-by: Pasha Tatashin <tatashin@google.com>
Signed-off-by: Yuanchu Xie <yuanchu@google.com>
2023-10-25 22:46:47 +00:00
|
|
|
pvmemcontrol = ["devices/pvmemcontrol"]
|
2024-05-07 10:32:46 +00:00
|
|
|
sev_snp = ["arch/sev_snp", "hypervisor/sev_snp", "virtio-devices/sev_snp"]
|
2021-02-12 15:17:18 +00:00
|
|
|
tdx = ["arch/tdx", "hypervisor/tdx"]
|
2022-06-21 14:01:26 +00:00
|
|
|
tracing = ["tracer/tracing"]
|
2019-09-03 13:54:06 +00:00
|
|
|
|
2019-02-22 16:04:35 +00:00
|
|
|
[dependencies]
|
2024-09-27 02:27:43 +00:00
|
|
|
acpi_tables = { workspace = true }
|
2024-12-04 23:40:16 +00:00
|
|
|
anyhow = "1.0.94"
|
2024-04-06 07:47:54 +00:00
|
|
|
arc-swap = "1.7.1"
|
2019-02-28 13:16:58 +00:00
|
|
|
arch = { path = "../arch" }
|
2024-08-12 23:39:04 +00:00
|
|
|
bitflags = "2.6.0"
|
2023-07-12 02:24:28 +00:00
|
|
|
block = { path = "../block" }
|
2024-06-11 23:46:06 +00:00
|
|
|
blocking = { version = "1.6.1", optional = true }
|
2022-12-20 04:39:20 +00:00
|
|
|
cfg-if = "1.0.0"
|
2024-08-19 23:10:10 +00:00
|
|
|
clap = "4.5.13"
|
2019-03-07 13:56:43 +00:00
|
|
|
devices = { path = "../devices" }
|
2024-05-07 10:29:02 +00:00
|
|
|
dhat = { version = "0.3.3", optional = true }
|
2023-07-04 23:04:49 +00:00
|
|
|
epoll = "4.3.3"
|
2021-02-17 11:24:36 +00:00
|
|
|
event_monitor = { path = "../event_monitor" }
|
2024-10-29 23:52:39 +00:00
|
|
|
flume = "0.11.1"
|
2024-02-07 09:27:32 +00:00
|
|
|
futures = { version = "0.3.30", optional = true }
|
2024-01-25 23:27:07 +00:00
|
|
|
gdbstub = { version = "0.7.1", optional = true }
|
2023-12-01 23:36:37 +00:00
|
|
|
gdbstub_arch = { version = "0.3.0", optional = true }
|
2023-10-10 23:08:22 +00:00
|
|
|
hex = { version = "0.4.3", optional = true }
|
2020-06-02 02:29:54 +00:00
|
|
|
hypervisor = { path = "../hypervisor" }
|
2024-08-02 23:02:57 +00:00
|
|
|
igvm = { version = "0.3.3", optional = true }
|
2024-05-31 18:59:03 +00:00
|
|
|
igvm_defs = { version = "0.3.1", optional = true }
|
2024-02-12 19:06:43 +00:00
|
|
|
landlock = "0.4.0"
|
2024-12-03 00:26:44 +00:00
|
|
|
libc = "0.2.167"
|
2024-09-27 02:27:43 +00:00
|
|
|
linux-loader = { workspace = true, features = ["bzimage", "elf", "pe"] }
|
2024-07-15 23:26:18 +00:00
|
|
|
log = "0.4.22"
|
2021-04-19 12:10:11 +00:00
|
|
|
micro_http = { git = "https://github.com/firecracker-microvm/micro-http", branch = "main" }
|
2024-09-27 02:27:43 +00:00
|
|
|
mshv-bindings = { workspace = true, features = [
|
2024-05-08 08:56:31 +00:00
|
|
|
"fam-wrappers",
|
2024-06-18 14:22:36 +00:00
|
|
|
"with-serde",
|
2024-05-08 08:56:31 +00:00
|
|
|
], optional = true }
|
2019-05-09 15:01:42 +00:00
|
|
|
net_util = { path = "../net_util" }
|
2024-10-07 13:21:51 +00:00
|
|
|
once_cell = "1.20.2"
|
2020-07-06 15:41:45 +00:00
|
|
|
option_parser = { path = "../option_parser" }
|
2020-10-15 15:34:35 +00:00
|
|
|
pci = { path = "../pci" }
|
2024-05-31 23:57:19 +00:00
|
|
|
range_map_vec = { version = "0.2.0", optional = true }
|
2023-12-07 19:45:08 +00:00
|
|
|
rate_limiter = { path = "../rate_limiter" }
|
2024-09-27 02:27:43 +00:00
|
|
|
seccompiler = { workspace = true }
|
2024-08-16 23:15:30 +00:00
|
|
|
serde = { version = "1.0.208", features = ["derive", "rc"] }
|
2024-07-24 23:42:39 +00:00
|
|
|
serde_json = "1.0.120"
|
2022-08-25 08:26:59 +00:00
|
|
|
serial_buffer = { path = "../serial_buffer" }
|
2023-08-01 23:45:19 +00:00
|
|
|
signal-hook = "0.3.17"
|
2024-07-16 23:17:07 +00:00
|
|
|
thiserror = "1.0.62"
|
2022-06-21 14:01:26 +00:00
|
|
|
tracer = { path = "../tracer" }
|
2024-04-06 07:47:54 +00:00
|
|
|
uuid = "1.8.0"
|
2024-09-27 02:27:43 +00:00
|
|
|
vfio-ioctls = { workspace = true, default-features = false }
|
|
|
|
vfio_user = { workspace = true }
|
2020-10-15 15:54:56 +00:00
|
|
|
virtio-devices = { path = "../virtio-devices" }
|
2024-09-27 02:27:43 +00:00
|
|
|
virtio-queue = { workspace = true }
|
2019-05-06 17:27:40 +00:00
|
|
|
vm-allocator = { path = "../vm-allocator" }
|
2019-11-18 23:24:31 +00:00
|
|
|
vm-device = { path = "../vm-device" }
|
2024-09-27 02:27:43 +00:00
|
|
|
vm-memory = { workspace = true, features = [
|
2024-05-08 08:56:31 +00:00
|
|
|
"backend-atomic",
|
|
|
|
"backend-bitmap",
|
2024-06-18 14:22:36 +00:00
|
|
|
"backend-mmap",
|
2024-05-08 08:56:31 +00:00
|
|
|
] }
|
2019-05-01 16:59:51 +00:00
|
|
|
vm-migration = { path = "../vm-migration" }
|
2019-10-07 17:48:44 +00:00
|
|
|
vm-virtio = { path = "../vm-virtio" }
|
2024-09-27 02:27:43 +00:00
|
|
|
vmm-sys-util = { workspace = true, features = ["with-serde"] }
|
2024-10-01 23:26:53 +00:00
|
|
|
zbus = { version = "4.4.0", optional = true }
|
2024-07-31 23:50:39 +00:00
|
|
|
zerocopy = { version = "0.7.35", features = ["alloc", "derive"] }
|