1[package] 2authors = ["Microsoft Authors"] 3edition = "2021" 4license = "Apache-2.0 OR BSD-3-Clause" 5name = "hypervisor" 6version = "0.1.0" 7 8[features] 9kvm = ["kvm-bindings", "kvm-ioctls", "vfio-ioctls/kvm"] 10mshv = ["mshv-bindings", "mshv-ioctls", "mshv_emulator", "vfio-ioctls/mshv"] 11mshv_emulator = ["iced-x86", "mshv-bindings"] 12sev_snp = ["igvm", "igvm_defs"] 13tdx = [] 14 15[dependencies] 16anyhow = "1.0.94" 17arc-swap = "1.7.1" 18byteorder = "1.5.0" 19cfg-if = "1.0.0" 20concat-idents = "1.1.5" 21igvm = { workspace = true, optional = true } 22igvm_defs = { workspace = true, optional = true } 23kvm-bindings = { workspace = true, optional = true, features = ["serde"] } 24kvm-ioctls = { workspace = true, optional = true } 25libc = "0.2.167" 26log = "0.4.22" 27mshv-bindings = { workspace = true, features = [ 28 "fam-wrappers", 29 "with-serde", 30], optional = true } 31mshv-ioctls = { workspace = true, optional = true } 32serde = { version = "1.0.208", features = ["derive", "rc"] } 33serde_json = { workspace = true } 34serde_with = { version = "3.9.0", default-features = false, features = [ 35 "macros", 36] } 37thiserror = "2.0.6" 38vfio-ioctls = { workspace = true, default-features = false } 39vm-memory = { workspace = true, features = [ 40 "backend-atomic", 41 "backend-bitmap", 42 "backend-mmap", 43] } 44vmm-sys-util = { workspace = true, features = ["with-serde"] } 45 46[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86] 47default-features = false 48features = [ 49 "decoder", 50 "instr_info", 51 "no_d3now", 52 "no_evex", 53 "no_vex", 54 "no_xop", 55 "op_code_info", 56 "std", 57] 58optional = true 59version = "1.21.0" 60 61[dev-dependencies] 62env_logger = "0.11.3" 63