crosvm/hypervisor/Cargo.toml
Kaiyi Li d43e8bd092 hypervisor: convenient macro to generate an array from inline assemblies
The new global_asm_data macro allows to embed the compiled assembly as an array, which makes it easier to modify and write new integration tests for the hypervisor.

A proc-macro is needed to generate random symbols and forward arbitrary arguments to the global_asm! macro.

TEST=cargo test --doc --package hypervisor_test_macro
TEST=cargo nextest run --workspace --features=all-msvc64_product_debug_test,whpx --profile=default -E 'package(hypervisor) & test(/.*test_minimal_virtualization/)'
BUG=b:334055761

Change-Id: I83b4b5f46bdd39adbfd279fefabbf275eb6127ea
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5549033
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Judson Powers <judsonp@google.com>
Commit-Queue: Kaiyi Li <kaiyili@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2024-05-21 19:31:17 +00:00

50 lines
1.1 KiB
TOML

[package]
name = "hypervisor"
version = "0.1.0"
authors = ["The ChromiumOS Authors"]
edition = "2021"
[features]
haxm = []
whpx = []
geniezone = []
gunyah = []
noncoherent-dma = []
[dependencies]
anyhow = "*"
bit_field = { path = "../bit_field" }
bitflags = "2.2.1"
cros_fdt = { path = "../cros_fdt" }
data_model = { path = "../common/data_model" }
downcast-rs = "1.2.0"
enumn = "0.1.0"
fnv = "1"
libc = "*"
memoffset = "0.6"
once_cell = "1.7"
serde = { version = "1", features = [ "derive" ] }
serde_json = { version = "1" }
sync = { path = "../common/sync" }
base = { path = "../base" }
vm_memory = { path = "../vm_memory" }
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
kvm_sys = { path = "../kvm_sys" }
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]
hypervisor_test_macro = { path = "hypervisor_test_macro" }
[target.'cfg(windows)'.dependencies]
thiserror = "*"
winapi = "*"
win_util = { path = "../win_util" }
[target.'cfg(windows)'.dependencies.windows]
version = "0.39.0"
features = [
"Win32_Foundation",
]
[target.'cfg(windows)'.dev-dependencies]
tempfile = "*"