mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 08:21:15 +00:00
On x86-64, when the underlying hypervisor platform is KVM, no instruction emulator is necessary. KVM handles instruction boundaries internally. This change allows to skip the iced-x86 dependency on KVM, improving build times, prunes the dependency graph and reduces network traffic during the initial build. For Hyper-V, the emulator is still necessary on x86-64, so nothing changes there. Signed-off-by: Christian Blichmann <cblichmann@google.com>
37 lines
1.4 KiB
TOML
37 lines
1.4 KiB
TOML
[package]
|
|
name = "hypervisor"
|
|
version = "0.1.0"
|
|
authors = ["Microsoft Authors"]
|
|
edition = "2021"
|
|
license = "Apache-2.0 OR BSD-3-Clause"
|
|
|
|
[features]
|
|
kvm = ["kvm-ioctls", "kvm-bindings", "vfio-ioctls/kvm"]
|
|
mshv = ["mshv-ioctls", "mshv-bindings", "vfio-ioctls/mshv", "iced-x86"]
|
|
tdx = []
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.71"
|
|
byteorder = "1.4.3"
|
|
thiserror = "1.0.40"
|
|
libc = "0.2.139"
|
|
log = "0.4.17"
|
|
kvm-ioctls = { version = "0.13.0", optional = true }
|
|
kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.6.0-tdx", features = ["with-serde", "fam-wrappers"], optional = true }
|
|
mshv-bindings = { git = "https://github.com/rust-vmm/mshv", branch = "main", features = ["with-serde", "fam-wrappers"], optional = true }
|
|
mshv-ioctls = { git = "https://github.com/rust-vmm/mshv", branch = "main", optional = true}
|
|
serde = { version = "1.0.164", features = ["rc", "derive"] }
|
|
serde_with = { version = "3.0.0", default-features = false, features = ["macros"] }
|
|
vfio-ioctls = { git = "https://github.com/rust-vmm/vfio", branch = "main", default-features = false }
|
|
vm-memory = { version = "0.11.0", features = ["backend-mmap", "backend-atomic"] }
|
|
vmm-sys-util = { version = "0.11.0", features = ["with-serde"] }
|
|
|
|
[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86]
|
|
optional = true
|
|
version = "1.19.0"
|
|
default-features = false
|
|
features = ["std", "decoder", "op_code_info", "instr_info", "fast_fmt"]
|
|
|
|
[dev-dependencies]
|
|
env_logger = "0.10.0"
|