diff --git a/Cargo.lock b/Cargo.lock index 699a3ee66..a7ca40805 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -424,6 +424,8 @@ dependencies = [ "libc", "linux-loader", "log 0.4.11", + "mshv-bindings", + "mshv-ioctls", "serde", "serde_derive", "serde_json", @@ -612,6 +614,28 @@ dependencies = [ "autocfg", ] +[[package]] +name = "mshv-bindings" +version = "0.1.0" +source = "git+https://github.com/cloud-hypervisor/mshv?branch=master#2ded6daf97976aa27c1aca47964672c201a7d17d" +dependencies = [ + "libc", + "serde", + "serde_derive", + "vmm-sys-util", + "zerocopy", +] + +[[package]] +name = "mshv-ioctls" +version = "0.1.0" +source = "git+https://github.com/cloud-hypervisor/mshv?branch=master#2ded6daf97976aa27c1aca47964672c201a7d17d" +dependencies = [ + "libc", + "mshv-bindings", + "vmm-sys-util", +] + [[package]] name = "net_gen" version = "0.1.0" @@ -1645,3 +1669,24 @@ name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "zerocopy" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6580539ad917b7c026220c4b3f2c08d52ce54d6ce0dc491e66002e35388fab46" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d498dbd1fd7beb83c86709ae1c33ca50942889473473d287d56ce4770a18edfb" +dependencies = [ + "proc-macro2", + "syn", + "synstructure", +] diff --git a/hypervisor/Cargo.toml b/hypervisor/Cargo.toml index 818dfda22..f74dedb54 100644 --- a/hypervisor/Cargo.toml +++ b/hypervisor/Cargo.toml @@ -16,6 +16,10 @@ libc = "0.2.81" log = "0.4.11" kvm-ioctls = { git = "https://github.com/cloud-hypervisor/kvm-ioctls", branch = "ch" } kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch", features = ["with-serde", "fam-wrappers"] } + +mshv-bindings = {git = "https://github.com/cloud-hypervisor/mshv", branch = "master", features = ["with-serde", "fam-wrappers"] } +mshv-ioctls = { git = "https://github.com/cloud-hypervisor/mshv", branch = "master" } + serde = {version = ">=1.0.27", features = ["rc"] } serde_derive = ">=1.0.27" serde_json = ">=1.0.9"