crosvm/vm_control/Cargo.toml

41 lines
1.2 KiB
TOML
Raw Normal View History

[package]
name = "vm_control"
version = "0.1.0"
authors = ["The ChromiumOS Authors"]
edition = "2021"
[features]
balloon = []
gdb = ["gdbstub", "gdbstub_arch"]
gpu = []
pci-hotplug = []
registered_events = ["balloon", "protos/registered_events"]
swap = ["swap/enable"]
[dependencies]
anyhow = "1"
balloon_control = { path = "../common/balloon_control" }
base = { path = "../base" }
cfg-if = "1"
crypto = { path = "../vendor/generic/crypto", package = "crypto_generic" }
gdbstub = { version = "0.7.0", optional = true }
gdbstub_arch = { version = "0.3.0", optional = true }
hypervisor = { path = "../hypervisor" }
libc = "0.2"
Reland "vm_control: reduce user memory region modifications" This is a reland of commit 22c212d54f1fc7c9854084ffaa697b7890a14b0a This reland avoids using the new pre-mapped memory regions on arm devices, since there is insufficient address space. The new path is still used on aarch64. Original change's description: > vm_control: reduce user memory region modifications > > Reduce how often KVM_SET_USER_MEMORY_REGION is called when the tdp mmu > is enabled. With the tdp mmu, there is no memory overhead from creating > large memory regions (at least until a nested VM is started). Simply > mmap'ing/munmap'ing fds within a pre-created memory region is more > efficient. It also addresses audio jank caused by removing a memory > region. > > Adding this support to VmMemoryRequest will allow FsMappingRequest to be > removed in a later change. > > BUG=b:274037632 > TEST=tast run arc.Boot.vm > TEST=manually launch gedit in crostini > > Change-Id: I2ac02454ecb734c9707b6d67546135134b887527 > Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4402068 > Reviewed-by: Dennis Kempin <denniskempin@google.com> > Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> > Commit-Queue: David Stevens <stevensd@chromium.org> Bug: b:274037632 Change-Id: I5deedfd3a030640f9af950cee675fac0d9a411a0 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4421352 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Dennis Kempin <denniskempin@google.com>
2023-04-06 10:30:38 +00:00
once_cell = "1.7.2"
protos = { path = "../protos", optional = true }
remain = "0.2"
resources = { path = "../resources" }
rutabaga_gfx = { path = "../rutabaga_gfx" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] }
swap = { path = "../swap" }
sync = { path = "../common/sync" }
thiserror = "1"
vm_control_product = { path = "../vendor/generic/vm_control", package = "vm_control_product" }
vm_memory = { path = "../vm_memory" }
[target.'cfg(windows)'.dependencies]
winapi = "0.3"