diff --git a/Cargo.lock b/Cargo.lock index 52afc0d15..39cef431b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,7 +5,7 @@ version = 3 [[package]] name = "acpi_tables" version = "0.1.0" -source = "git+https://github.com/rust-vmm/acpi_tables?branch=main#1a733bf690ccc10bdfeacad33e3c9f6cce0008fd" +source = "git+https://github.com/rust-vmm/acpi_tables?branch=main#76e8552f57f76ca918e19c0a7b7480d2fa2c7241" dependencies = [ "zerocopy", ] @@ -65,28 +65,28 @@ dependencies = [ [[package]] name = "anstyle-query" -version = "1.0.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" +checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.1" +version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628" +checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" dependencies = [ "anstyle", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "anyhow" -version = "1.0.75" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" +checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" [[package]] name = "api_client" @@ -135,13 +135,15 @@ dependencies = [ [[package]] name = "async-channel" -version = "1.9.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +checksum = "1ca33f4bc4ed1babef42cad36cc1f51fa88be00420404e5b1e80ab1b18f7678c" dependencies = [ "concurrent-queue", - "event-listener 2.5.3", + "event-listener 4.0.0", + "event-listener-strategy", "futures-core", + "pin-project-lite", ] [[package]] @@ -312,9 +314,9 @@ dependencies = [ [[package]] name = "bitfield-struct" -version = "0.5.4" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac32db62a43cf33353ce30b4a208b08193ea2086a1c6c004acb0073c706a29d" +checksum = "a26b8cea8bb6a81b75a84603b9e096f05fa86db057904ef29be1deee900532bd" dependencies = [ "proc-macro2", "quote", @@ -366,17 +368,18 @@ dependencies = [ [[package]] name = "blocking" -version = "1.3.1" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77231a1c8f801696fc0123ec6150ce92cffb8e164a02afb9c8ddee0e9b65ad65" +checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" dependencies = [ "async-channel", - "async-lock 2.7.0", + "async-lock 3.2.0", "async-task", - "atomic-waker", - "fastrand 1.9.0", - "futures-lite 1.13.0", - "log", + "fastrand 2.0.0", + "futures-io", + "futures-lite 2.1.0", + "piper", + "tracing", ] [[package]] @@ -509,9 +512,9 @@ dependencies = [ [[package]] name = "crc64" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55626594feae15d266d52440b26ff77de0e22230cf0c113abe619084c1ddc910" +checksum = "2707e3afba5e19b75d582d88bc79237418f2a2a2d673d01cf9b03633b46e98f3" [[package]] name = "crossbeam-utils" @@ -673,9 +676,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" +checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece" dependencies = [ "humantime", "is-terminal", @@ -826,9 +829,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-executor" @@ -952,9 +955,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" +checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if", "js-sys", @@ -1142,8 +1145,8 @@ dependencies = [ [[package]] name = "kvm-bindings" -version = "0.6.0" -source = "git+https://github.com/cloud-hypervisor/kvm-bindings?branch=ch-v0.6.0-tdx#7d9ffb47e5b9b1989577258800a0f57c93f1445f" +version = "0.7.0" +source = "git+https://github.com/cloud-hypervisor/kvm-bindings?branch=ch-v0.7.0#2dcf85d4f8aa55befcaa996b699ddb18ec9ed059" dependencies = [ "serde", "serde_derive", @@ -1152,9 +1155,11 @@ dependencies = [ [[package]] name = "kvm-ioctls" -version = "0.13.0" -source = "git+https://github.com/rust-vmm/kvm-ioctls?branch=main#23a3bb045a467e60bb00328a0b13cea13b5815d0" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9002dff009755414f22b962ec6ae6980b07d6d8b06e5297b1062019d72bd6a8c" dependencies = [ + "bitflags 2.4.1", "kvm-bindings", "libc", "vmm-sys-util", @@ -1168,9 +1173,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.147" +version = "0.2.151" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" +checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" [[package]] name = "libssh2-sys" @@ -1200,9 +1205,9 @@ dependencies = [ [[package]] name = "linux-loader" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "132a531b85b3a164012ab682c72f8f2cce7757f187be5f60782fd2b4cda9cb34" +checksum = "eb68dd3452f25a8defaf0ae593509cff0c777683e4d8924f59ac7c5f89267a83" dependencies = [ "vm-memory", ] @@ -1259,7 +1264,7 @@ dependencies = [ [[package]] name = "micro_http" version = "0.1.0" -source = "git+https://github.com/firecracker-microvm/micro-http?branch=main#a4d632f2c5ea45712c0d2002dc909a63879e85c3" +source = "git+https://github.com/firecracker-microvm/micro-http?branch=main#e75dfa1eeea23b69caa7407bc2c3a76d7b7262fb" dependencies = [ "libc", "vmm-sys-util", @@ -1287,7 +1292,7 @@ dependencies = [ [[package]] name = "mshv-bindings" version = "0.1.1" -source = "git+https://github.com/rust-vmm/mshv?branch=main#0dd4d3452a7f2e95199f4b58380acc41458474de" +source = "git+https://github.com/rust-vmm/mshv?branch=main#9d0c11fe9fedfbcf56a5d62fbf4bad80cdf91340" dependencies = [ "libc", "serde", @@ -1299,7 +1304,7 @@ dependencies = [ [[package]] name = "mshv-ioctls" version = "0.1.1" -source = "git+https://github.com/rust-vmm/mshv?branch=main#0dd4d3452a7f2e95199f4b58380acc41458474de" +source = "git+https://github.com/rust-vmm/mshv?branch=main#9d0c11fe9fedfbcf56a5d62fbf4bad80cdf91340" dependencies = [ "libc", "mshv-bindings", @@ -1385,9 +1390,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "open-enum" @@ -1579,6 +1584,17 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "piper" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "668d31b1c4eba19242f2088b2bf3316b82ca31082a8335764db4e083db7485d4" +dependencies = [ + "atomic-waker", + "fastrand 2.0.0", + "futures-io", +] + [[package]] name = "pkg-config" version = "0.3.27" @@ -1710,9 +1726,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.70" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -1768,6 +1784,7 @@ version = "0.1.0" dependencies = [ "libc", "log", + "thiserror", "vmm-sys-util", ] @@ -1937,9 +1954,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "cb0652c533506ad7a2e353cce269330d6afd8bdfb6d75e0ace5b35aacbd7b9e9" dependencies = [ "itoa", "ryu", @@ -2152,18 +2169,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "83a48fd946b02c0a526b2e9481c8e2a17755e47039164a86c4070446e3a4614d" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "e7fbe9b594d6568a6a1443250a7e67d80b74e1e96f6d1715e1e21cc1888291d3" dependencies = [ "proc-macro2", "quote", @@ -2219,11 +2236,10 @@ dependencies = [ [[package]] name = "tracing" -version = "0.1.37" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "cfg-if", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -2231,9 +2247,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.26" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", @@ -2242,9 +2258,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.31" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ "once_cell", ] @@ -2300,9 +2316,9 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "versionize" -version = "0.1.10" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dca4b7062e7e6d685901e815c35f9671e059de97c1c0905eeff8592f3fff442f" +checksum = "62929d59c7f6730b7298fcb363760550f4db6e353fbac4076d447d0e82799d6d" dependencies = [ "bincode", "crc64", @@ -2317,8 +2333,8 @@ dependencies = [ [[package]] name = "versionize_derive" -version = "0.1.4" -source = "git+https://github.com/cloud-hypervisor/versionize_derive?branch=ch#e502b1d4aabab342386f0c53780d49f21a6a1df6" +version = "0.1.6" +source = "git+https://github.com/cloud-hypervisor/versionize_derive?branch=ch-0.1.6#7906da996152e2d0ab08f5526440683bf3ca7834" dependencies = [ "proc-macro2", "quote", @@ -2328,7 +2344,7 @@ dependencies = [ [[package]] name = "vfio-bindings" version = "0.4.0" -source = "git+https://github.com/rust-vmm/vfio?branch=main#59c604fa6e42080f0a47c124ba29454fe4cb7475" +source = "git+https://github.com/rust-vmm/vfio?branch=main#0daff4d4c159e842cf18b8b90457a45032b2df5a" dependencies = [ "vmm-sys-util", ] @@ -2336,7 +2352,7 @@ dependencies = [ [[package]] name = "vfio-ioctls" version = "0.2.0" -source = "git+https://github.com/rust-vmm/vfio?branch=main#59c604fa6e42080f0a47c124ba29454fe4cb7475" +source = "git+https://github.com/rust-vmm/vfio?branch=main#0daff4d4c159e842cf18b8b90457a45032b2df5a" dependencies = [ "byteorder", "kvm-bindings", @@ -2354,7 +2370,7 @@ dependencies = [ [[package]] name = "vfio_user" version = "0.1.0" -source = "git+https://github.com/rust-vmm/vfio-user?branch=main#6c72e997e61d9e84b8ee691ad63ece6c717cf5aa" +source = "git+https://github.com/rust-vmm/vfio-user?branch=main#a1f6e52829e069b6d698b2cfeecac742e4653186" dependencies = [ "bitflags 1.3.2", "libc", @@ -2370,9 +2386,9 @@ dependencies = [ [[package]] name = "vhost" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "289adfce099c71f8310f895932ccd978f352ca494ea47496dbe20d4241888b82" +checksum = "2b64e816d0d49769fbfaa1494eb77cc2a3ddc526ead05c7f922cb7d64106286f" dependencies = [ "bitflags 2.4.1", "libc", @@ -2382,9 +2398,9 @@ dependencies = [ [[package]] name = "vhost-user-backend" -version = "0.11.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61255322e3ebe93fb77d9f6d99577eca7089bbea4174076c5353a8024a463061" +checksum = "72c8c447d076ac508d78cb45664d203df7989e891656dce260a7e93d72352c9a" dependencies = [ "libc", "log", @@ -2474,9 +2490,9 @@ dependencies = [ [[package]] name = "virtio-queue" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73a01db2cfb6c4b9bc20608b1336263d16714ea8db05de9fec2a254e076f9385" +checksum = "e3f69a13d6610db9312acbb438b0390362af905d37634a2106be70c0f734986d" dependencies = [ "log", "virtio-bindings", @@ -2513,9 +2529,9 @@ source = "git+https://github.com/rust-vmm/vm-fdt?branch=main#77212bd0d62913e445c [[package]] name = "vm-memory" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5376c9ee5ebe2103a310d8241936cfb93c946734b0479a4fa5bdf7a64abbacd8" +checksum = "74ffc42216c32c35f858fa4bfdcd9b61017dfd691e0240268fdc85dbf59e5459" dependencies = [ "arc-swap", "libc", @@ -2605,9 +2621,9 @@ dependencies = [ [[package]] name = "vmm-sys-util" -version = "0.11.1" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd64fe09d8e880e600c324e7d664760a17f56e9672b7495a86381b49e4f72f46" +checksum = "1d1435039746e20da4f8d507a72ee1b916f7b4b05af7a91c093d2c6561934ede" dependencies = [ "bitflags 1.3.2", "libc", @@ -2739,6 +2755,15 @@ dependencies = [ "windows-targets 0.48.0", ] +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.0", +] + [[package]] name = "windows-targets" version = "0.42.2" @@ -2769,6 +2794,21 @@ dependencies = [ "windows_x86_64_msvc 0.48.0", ] +[[package]] +name = "windows-targets" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" +dependencies = [ + "windows_aarch64_gnullvm 0.52.0", + "windows_aarch64_msvc 0.52.0", + "windows_i686_gnu 0.52.0", + "windows_i686_msvc 0.52.0", + "windows_x86_64_gnu 0.52.0", + "windows_x86_64_gnullvm 0.52.0", + "windows_x86_64_msvc 0.52.0", +] + [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" @@ -2781,6 +2821,12 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" + [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -2793,6 +2839,12 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" + [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -2805,6 +2857,12 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +[[package]] +name = "windows_i686_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" + [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -2817,6 +2875,12 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +[[package]] +name = "windows_i686_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" + [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -2829,6 +2893,12 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" + [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" @@ -2841,6 +2911,12 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" + [[package]] name = "windows_x86_64_msvc" version = "0.42.2" @@ -2853,6 +2929,12 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" + [[package]] name = "winnow" version = "0.5.18" @@ -2940,9 +3022,9 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.21" +version = "0.7.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "686b7e407015242119c33dab17b8f61ba6843534de936d94368856528eae4dcc" +checksum = "1c4061bedbb353041c12f413700357bec76df2c7e2ca8e4df8bac24c6bf68e3d" dependencies = [ "byteorder", "zerocopy-derive", @@ -2950,9 +3032,9 @@ dependencies = [ [[package]] name = "zerocopy-derive" -version = "0.7.21" +version = "0.7.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "020f3dfe25dfc38dfea49ce62d5d45ecdd7f0d8a724fa63eb36b6eba4ec76806" +checksum = "b3c129550b3e6de3fd0ba67ba5c81818f9805e58b8d7fee80a3a59d2c9fc601a" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index ceb1fc679..2bce87916 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,15 +46,14 @@ thiserror = "1.0.40" tpm = { path = "tpm"} tracer = { path = "tracer" } vmm = { path = "vmm" } -vmm-sys-util = "0.11.0" -vm-memory = "0.13.1" +vmm-sys-util = "0.12.1" +vm-memory = "0.14.0" zbus = { version = "3.11.1", optional = true } # List of patched crates [patch.crates-io] -kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.6.0-tdx" } -kvm-ioctls = { git = "https://github.com/rust-vmm/kvm-ioctls", branch = "main" } -versionize_derive = { git = "https://github.com/cloud-hypervisor/versionize_derive", branch = "ch" } +kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.7.0" } +versionize_derive = { git = "https://github.com/cloud-hypervisor/versionize_derive", branch = "ch-0.1.6" } [dev-dependencies] dirs = "5.0.0" diff --git a/api_client/Cargo.toml b/api_client/Cargo.toml index 5be434702..e2fba5262 100644 --- a/api_client/Cargo.toml +++ b/api_client/Cargo.toml @@ -5,4 +5,4 @@ authors = ["The Cloud Hypervisor Authors"] edition = "2021" [dependencies] -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" diff --git a/arch/Cargo.toml b/arch/Cargo.toml index 001050bed..68484d9b2 100644 --- a/arch/Cargo.toml +++ b/arch/Cargo.toml @@ -14,16 +14,16 @@ anyhow = "1.0.75" byteorder = "1.4.3" hypervisor = { path = "../hypervisor" } libc = "0.2.147" -linux-loader = { version = "0.10.0", features = ["elf", "bzimage", "pe"] } +linux-loader = { version = "0.11.0", features = ["elf", "bzimage", "pe"] } log = "0.4.20" serde = { version = "1.0.168", features = ["rc", "derive"] } thiserror = "1.0.40" uuid = "1.3.4" -versionize = "0.1.10" -versionize_derive = "0.1.4" -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-bitmap"] } +versionize = "0.2.0" +versionize_derive = "0.1.6" +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-bitmap"] } vm-migration = { path = "../vm-migration" } -vmm-sys-util = { version = "0.11.0", features = ["with-serde"] } +vmm-sys-util = { version = "0.12.1", features = ["with-serde"] } [target.'cfg(target_arch = "aarch64")'.dependencies] fdt_parser = { version = "0.1.4", package = "fdt" } diff --git a/block/Cargo.toml b/block/Cargo.toml index faf2dc8bb..9a0e46796 100644 --- a/block/Cargo.toml +++ b/block/Cargo.toml @@ -18,10 +18,10 @@ remain = "0.2.11" smallvec = "1.11.0" thiserror = "1.0.40" uuid = { version = "1.3.4", features = ["v4"] } -versionize = "0.1.10" -versionize_derive = "0.1.4" +versionize = "0.2.0" +versionize_derive = "0.1.6" virtio-bindings = { version = "0.2.0", features = ["virtio-v5_0_0"] } -virtio-queue = "0.10.0" -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } +virtio-queue = "0.11.0" +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } vm-virtio = { path = "../vm-virtio" } -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" diff --git a/devices/Cargo.toml b/devices/Cargo.toml index bdc86951f..e4506bc4a 100644 --- a/devices/Cargo.toml +++ b/devices/Cargo.toml @@ -17,13 +17,13 @@ log = "0.4.20" pci = { path = "../pci" } thiserror = "1.0.40" tpm = { path = "../tpm" } -versionize = "0.1.10" -versionize_derive = "0.1.4" +versionize = "0.2.0" +versionize_derive = "0.1.6" vm-allocator = { path = "../vm-allocator" } vm-device = { path = "../vm-device" } -vm-memory = "0.13.1" +vm-memory = "0.14.0" vm-migration = { path = "../vm-migration" } -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" [target.'cfg(target_arch = "aarch64")'.dependencies] arch = { path = "../arch" } diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 346e96526..cc9fcd71a 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -12,9 +12,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.5" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6" +checksum = "6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5" dependencies = [ "anstyle", "anstyle-parse", @@ -60,9 +60,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.75" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" +checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" [[package]] name = "api_client" @@ -184,18 +184,18 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" -version = "4.4.11" +version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfaff671f6b22ca62406885ece523383b9b64022e341e53e009a62ebc47a45f2" +checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.4.11" +version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a216b506622bb1d316cd51328dce24e07bdff4a6128a47c7e7fad11878d5adbb" +checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7" dependencies = [ "anstream", "anstyle", @@ -211,7 +211,7 @@ checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" [[package]] name = "cloud-hypervisor" -version = "36.0.0" +version = "37.0.0" dependencies = [ "anyhow", "api_client", @@ -252,6 +252,7 @@ dependencies = [ "virtio-queue", "vm-device", "vm-memory", + "vm-migration", "vm-virtio", "vmm", "vmm-sys-util", @@ -274,9 +275,9 @@ dependencies = [ [[package]] name = "crc64" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55626594feae15d266d52440b26ff77de0e22230cf0c113abe619084c1ddc910" +checksum = "2707e3afba5e19b75d582d88bc79237418f2a2a2d673d01cf9b03633b46e98f3" [[package]] name = "darling" @@ -299,7 +300,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.32", + "syn 2.0.47", ] [[package]] @@ -310,7 +311,7 @@ checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5" dependencies = [ "darling_core", "quote", - "syn 2.0.32", + "syn 2.0.47", ] [[package]] @@ -386,15 +387,15 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "futures-core" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-sink" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "getrandom" @@ -445,9 +446,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "jobserver" @@ -469,8 +470,8 @@ dependencies = [ [[package]] name = "kvm-bindings" -version = "0.6.0" -source = "git+https://github.com/cloud-hypervisor/kvm-bindings?branch=ch-v0.6.0-tdx#7d9ffb47e5b9b1989577258800a0f57c93f1445f" +version = "0.7.0" +source = "git+https://github.com/cloud-hypervisor/kvm-bindings?branch=ch-v0.7.0#2dcf85d4f8aa55befcaa996b699ddb18ec9ed059" dependencies = [ "serde", "serde_derive", @@ -479,10 +480,11 @@ dependencies = [ [[package]] name = "kvm-ioctls" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8f8dc9c1896e5f144ec5d07169bc29f39a047686d29585a91f30489abfaeb6b" +checksum = "9002dff009755414f22b962ec6ae6980b07d6d8b06e5297b1062019d72bd6a8c" dependencies = [ + "bitflags 2.4.1", "kvm-bindings", "libc", "vmm-sys-util", @@ -490,9 +492,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.150" +version = "0.2.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" +checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" [[package]] name = "libfuzzer-sys" @@ -507,9 +509,9 @@ dependencies = [ [[package]] name = "linux-loader" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "132a531b85b3a164012ab682c72f8f2cce7757f187be5f60782fd2b4cda9cb34" +checksum = "eb68dd3452f25a8defaf0ae593509cff0c777683e4d8924f59ac7c5f89267a83" dependencies = [ "vm-memory", ] @@ -533,7 +535,7 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "micro_http" version = "0.1.0" -source = "git+https://github.com/firecracker-microvm/micro-http?branch=main#a4d632f2c5ea45712c0d2002dc909a63879e85c3" +source = "git+https://github.com/firecracker-microvm/micro-http?branch=main#e75dfa1eeea23b69caa7407bc2c3a76d7b7262fb" dependencies = [ "libc", "vmm-sys-util", @@ -626,23 +628,23 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", ] [[package]] name = "proc-macro2" -version = "1.0.70" +version = "1.0.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" +checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] @@ -651,20 +653,22 @@ dependencies = [ name = "rate_limiter" version = "0.1.0" dependencies = [ + "epoll", "libc", "log", + "thiserror", "vmm-sys-util", ] [[package]] name = "remain" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bce3a7139d2ee67d07538ee5dba997364fbc243e7e7143e96eb830c74bfaa082" +checksum = "1ad5e011230cad274d0532460c5ab69828ea47ae75681b42a841663efffaf794" dependencies = [ "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", ] [[package]] @@ -705,29 +709,29 @@ checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" [[package]] name = "serde" -version = "1.0.193" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" +checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.193" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" +checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", ] [[package]] name = "serde_json" -version = "1.0.108" +version = "1.0.111" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" +checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" dependencies = [ "itoa", "ryu", @@ -753,7 +757,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", ] [[package]] @@ -781,9 +785,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.11.2" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" +checksum = "2593d31f82ead8df961d8bd23a64c2ccf2eb5dd34b0a34bfb4dd54011c72009e" [[package]] name = "spin" @@ -813,9 +817,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.32" +version = "2.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239814284fd6f1a4ffe4ca893952cdd93c224b6a1571c9a9eadd670295c0c9e2" +checksum = "1726efe18f42ae774cc644f330953a5e7b3c3003d3edcecf18850fe9d4dd9afb" dependencies = [ "proc-macro2", "quote", @@ -824,22 +828,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.50" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2" +checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.50" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" +checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" dependencies = [ "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", ] [[package]] @@ -880,18 +884,18 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "uuid" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" +checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" dependencies = [ "getrandom", ] [[package]] name = "versionize" -version = "0.1.10" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dca4b7062e7e6d685901e815c35f9671e059de97c1c0905eeff8592f3fff442f" +checksum = "62929d59c7f6730b7298fcb363760550f4db6e353fbac4076d447d0e82799d6d" dependencies = [ "bincode", "crc64", @@ -906,8 +910,8 @@ dependencies = [ [[package]] name = "versionize_derive" -version = "0.1.4" -source = "git+https://github.com/cloud-hypervisor/versionize_derive?branch=ch#e502b1d4aabab342386f0c53780d49f21a6a1df6" +version = "0.1.6" +source = "git+https://github.com/cloud-hypervisor/versionize_derive?branch=ch-0.1.6#7906da996152e2d0ab08f5526440683bf3ca7834" dependencies = [ "proc-macro2", "quote", @@ -917,7 +921,7 @@ dependencies = [ [[package]] name = "vfio-bindings" version = "0.4.0" -source = "git+https://github.com/rust-vmm/vfio?branch=main#59c604fa6e42080f0a47c124ba29454fe4cb7475" +source = "git+https://github.com/rust-vmm/vfio?branch=main#0daff4d4c159e842cf18b8b90457a45032b2df5a" dependencies = [ "vmm-sys-util", ] @@ -925,7 +929,7 @@ dependencies = [ [[package]] name = "vfio-ioctls" version = "0.2.0" -source = "git+https://github.com/rust-vmm/vfio?branch=main#59c604fa6e42080f0a47c124ba29454fe4cb7475" +source = "git+https://github.com/rust-vmm/vfio?branch=main#0daff4d4c159e842cf18b8b90457a45032b2df5a" dependencies = [ "byteorder", "kvm-bindings", @@ -941,7 +945,7 @@ dependencies = [ [[package]] name = "vfio_user" version = "0.1.0" -source = "git+https://github.com/rust-vmm/vfio-user?branch=main#6c72e997e61d9e84b8ee691ad63ece6c717cf5aa" +source = "git+https://github.com/rust-vmm/vfio-user?branch=main#a1f6e52829e069b6d698b2cfeecac742e4653186" dependencies = [ "bitflags 1.3.2", "libc", @@ -957,9 +961,9 @@ dependencies = [ [[package]] name = "vhost" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "289adfce099c71f8310f895932ccd978f352ca494ea47496dbe20d4241888b82" +checksum = "2b64e816d0d49769fbfaa1494eb77cc2a3ddc526ead05c7f922cb7d64106286f" dependencies = [ "bitflags 2.4.1", "libc", @@ -1009,9 +1013,9 @@ dependencies = [ [[package]] name = "virtio-queue" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73a01db2cfb6c4b9bc20608b1336263d16714ea8db05de9fec2a254e076f9385" +checksum = "e3f69a13d6610db9312acbb438b0390362af905d37634a2106be70c0f734986d" dependencies = [ "log", "virtio-bindings", @@ -1048,9 +1052,9 @@ source = "git+https://github.com/rust-vmm/vm-fdt?branch=main#c5a99ab71b130435927 [[package]] name = "vm-memory" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5376c9ee5ebe2103a310d8241936cfb93c946734b0479a4fa5bdf7a64abbacd8" +checksum = "74ffc42216c32c35f858fa4bfdcd9b61017dfd691e0240268fdc85dbf59e5459" dependencies = [ "arc-swap", "libc", @@ -1105,6 +1109,7 @@ dependencies = [ "once_cell", "option_parser", "pci", + "rate_limiter", "seccompiler", "serde", "serde_json", @@ -1130,9 +1135,9 @@ dependencies = [ [[package]] name = "vmm-sys-util" -version = "0.11.2" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48b7b084231214f7427041e4220d77dfe726897a6d41fddee450696e66ff2a29" +checksum = "1d1435039746e20da4f8d507a72ee1b916f7b4b05af7a91c093d2c6561934ede" dependencies = [ "bitflags 1.3.2", "libc", @@ -1167,7 +1172,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", "wasm-bindgen-shared", ] @@ -1189,7 +1194,7 @@ checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -1290,9 +1295,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "zerocopy" -version = "0.7.29" +version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d075cf85bbb114e933343e087b92f2146bac0d55b534cbb8188becf0039948e" +checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" dependencies = [ "byteorder", "zerocopy-derive", @@ -1300,11 +1305,11 @@ dependencies = [ [[package]] name = "zerocopy-derive" -version = "0.7.29" +version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86cd5ca076997b97ef09d3ad65efe811fa68c9e874cb636ccb211223a813b0c2" +checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.32", + "syn 2.0.47", ] diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index ef73e10cb..5bec78384 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -15,18 +15,19 @@ igvm = [] block = { path = "../block" } devices = { path = "../devices" } epoll = "4.3.1" -libc = "0.2.150" +libc = "0.2.152" libfuzzer-sys = "0.4.7" -linux-loader = { version = "0.10.0", features = ["elf", "bzimage", "pe"] } +linux-loader = { version = "0.11.0", features = ["elf", "bzimage", "pe"] } micro_http = { git = "https://github.com/firecracker-microvm/micro-http", branch = "main" } net_util = { path = "../net_util" } once_cell = "1.19.0" seccompiler = "0.4.0" virtio-devices = { path = "../virtio-devices" } -virtio-queue = "0.10.0" +virtio-queue = "0.11.0" vmm = { path = "../vmm" } -vmm-sys-util = "0.11.2" -vm-memory = "0.13.1" +vmm-sys-util = "0.12.1" +vm-memory = "0.14.0" +vm-migration = { path = "../vm-migration" } vm-device = { path = "../vm-device" } vm-virtio = { path = "../vm-virtio" } @@ -34,8 +35,8 @@ vm-virtio = { path = "../vm-virtio" } path = ".." [patch.crates-io] -kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.6.0-tdx" } -versionize_derive = { git = "https://github.com/cloud-hypervisor/versionize_derive", branch = "ch" } +kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.7.0" } +versionize_derive = { git = "https://github.com/cloud-hypervisor/versionize_derive", branch = "ch-0.1.6" } # Prevent this from interfering with workspaces [workspace] diff --git a/hypervisor/Cargo.toml b/hypervisor/Cargo.toml index 11cffefc3..ce49f50d4 100644 --- a/hypervisor/Cargo.toml +++ b/hypervisor/Cargo.toml @@ -18,16 +18,16 @@ igvm_defs = { git = "https://github.com/microsoft/igvm", branch = "main", packag igvm_parser = { git = "https://github.com/microsoft/igvm", branch = "main", package = "igvm", optional = true } libc = "0.2.147" log = "0.4.20" -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 } +kvm-ioctls = { version = "0.16.0", optional = true } +kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.7.0", 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.168", features = ["rc", "derive"] } serde_with = { version = "3.4.0", default-features = false, features = ["macros"] } vfio-ioctls = { git = "https://github.com/rust-vmm/vfio", branch = "main", default-features = false } -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic"] } -vmm-sys-util = { version = "0.11.0", features = ["with-serde"] } -thiserror = "1.0.40" +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic"] } +vmm-sys-util = { version = "0.12.1", features = ["with-serde"] } +thiserror = "1.0.52" [target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86] optional = true diff --git a/hypervisor/src/arch/x86/mod.rs b/hypervisor/src/arch/x86/mod.rs index 9fedbea7c..72b57072f 100644 --- a/hypervisor/src/arch/x86/mod.rs +++ b/hypervisor/src/arch/x86/mod.rs @@ -311,3 +311,17 @@ pub struct MsrEntry { pub index: u32, pub data: u64, } + +#[serde_with::serde_as] +#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] +pub struct XsaveState { + #[serde_as(as = "[_; 1024usize]")] + pub region: [u32; 1024usize], +} + +impl Default for XsaveState { + fn default() -> Self { + // SAFETY: this is plain old data structure + unsafe { ::std::mem::zeroed() } + } +} diff --git a/hypervisor/src/kvm/mod.rs b/hypervisor/src/kvm/mod.rs index ef885ae3b..283e7406c 100644 --- a/hypervisor/src/kvm/mod.rs +++ b/hypervisor/src/kvm/mod.rs @@ -47,7 +47,7 @@ use vmm_sys_util::eventfd::EventFd; pub mod x86_64; #[cfg(target_arch = "x86_64")] use crate::arch::x86::{ - CpuIdEntry, FpuState, LapicState, MsrEntry, SpecialRegisters, StandardRegisters, + CpuIdEntry, FpuState, LapicState, MsrEntry, SpecialRegisters, StandardRegisters, XsaveState, NUM_IOAPIC_PINS, }; #[cfg(target_arch = "x86_64")] @@ -66,7 +66,7 @@ use kvm_bindings::{ #[cfg(target_arch = "x86_64")] use x86_64::check_required_kvm_extensions; #[cfg(target_arch = "x86_64")] -pub use x86_64::{CpuId, ExtendedControlRegisters, MsrEntries, VcpuKvmState, Xsave}; +pub use x86_64::{CpuId, ExtendedControlRegisters, MsrEntries, VcpuKvmState}; // aarch64 dependencies #[cfg(target_arch = "aarch64")] pub mod aarch64; @@ -1164,71 +1164,64 @@ impl cpu::Vcpu for KvmVcpu { // These actually are the general-purpose registers of the Armv8-a // architecture (i.e x0-x30 if used as a 64bit register or w0-30 when used as a 32bit register). for i in 0..31 { - state.regs.regs[i] = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.regs.regs[i] = u64::from_le_bytes(bytes); off += std::mem::size_of::(); } // We are now entering the "Other register" section of the ARMv8-a architecture. // First one, stack pointer. let off = offset_of!(user_pt_regs, sp); - state.regs.sp = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.regs.sp = u64::from_le_bytes(bytes); // Second one, the program counter. let off = offset_of!(user_pt_regs, pc); - state.regs.pc = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.regs.pc = u64::from_le_bytes(bytes); // Next is the processor state. let off = offset_of!(user_pt_regs, pstate); - state.regs.pstate = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.regs.pstate = u64::from_le_bytes(bytes); // The stack pointer associated with EL1 let off = offset_of!(kvm_regs, sp_el1); - state.sp_el1 = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.sp_el1 = u64::from_le_bytes(bytes); // Exception Link Register for EL1, when taking an exception to EL1, this register // holds the address to which to return afterwards. let off = offset_of!(kvm_regs, elr_el1); - state.elr_el1 = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.elr_el1 = u64::from_le_bytes(bytes); // Saved Program Status Registers, there are 5 of them used in the kernel. let mut off = offset_of!(kvm_regs, spsr); for i in 0..KVM_NR_SPSR as usize { - state.spsr[i] = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.spsr[i] = u64::from_le_bytes(bytes); off += std::mem::size_of::(); } @@ -1236,30 +1229,29 @@ impl cpu::Vcpu for KvmVcpu { // https://elixir.free-electrons.com/linux/v4.9.62/source/arch/arm64/include/uapi/asm/kvm.h#L53 let mut off = offset_of!(kvm_regs, fp_regs) + offset_of!(user_fpsimd_state, vregs); for i in 0..32 { - state.fp_regs.vregs[i] = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U128, off)) + let mut bytes = [0_u8; 16]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U128, off), &mut bytes) .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.fp_regs.vregs[i] = u128::from_le_bytes(bytes); off += mem::size_of::(); } // Floating-point Status Register let off = offset_of!(kvm_regs, fp_regs) + offset_of!(user_fpsimd_state, fpsr); - state.fp_regs.fpsr = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U32, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 4]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U32, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.fp_regs.fpsr = u32::from_le_bytes(bytes); // Floating-point Control Register let off = offset_of!(kvm_regs, fp_regs) + offset_of!(user_fpsimd_state, fpcr); - state.fp_regs.fpcr = self - .fd - .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U32, off)) - .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))? - .try_into() - .unwrap(); + let mut bytes = [0_u8; 4]; + self.fd + .get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U32, off), &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetCoreRegister(e.into()))?; + state.fp_regs.fpcr = u32::from_le_bytes(bytes); Ok(state) } @@ -1288,7 +1280,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, off), - state.regs.regs[i].into(), + &state.regs.regs[i].to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; off += std::mem::size_of::(); @@ -1298,7 +1290,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, off), - state.regs.sp.into(), + &state.regs.sp.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; @@ -1306,7 +1298,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, off), - state.regs.pc.into(), + &state.regs.pc.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; @@ -1314,7 +1306,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, off), - state.regs.pstate.into(), + &state.regs.pstate.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; @@ -1322,7 +1314,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, off), - state.sp_el1.into(), + &state.sp_el1.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; @@ -1330,7 +1322,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, off), - state.elr_el1.into(), + &state.elr_el1.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; @@ -1339,7 +1331,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, off), - state.spsr[i].into(), + &state.spsr[i].to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; off += std::mem::size_of::(); @@ -1350,7 +1342,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U128, off), - state.fp_regs.vregs[i], + &state.fp_regs.vregs[i].to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; off += mem::size_of::(); @@ -1360,7 +1352,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U32, off), - state.fp_regs.fpsr.into(), + &state.fp_regs.fpsr.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; @@ -1368,7 +1360,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U32, off), - state.fp_regs.fpcr.into(), + &state.fp_regs.fpcr.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; Ok(()) @@ -1609,7 +1601,7 @@ impl cpu::Vcpu for KvmVcpu { Ok(cpu::VmExit::Shutdown) } else { Err(cpu::HypervisorCpuError::RunVcpu(anyhow!( - "Unexpected system event with type 0x{:x}, flags 0x{:x}", + "Unexpected system event with type 0x{:x}, flags 0x{:x?}", event_type, flags ))) @@ -1773,12 +1765,11 @@ impl cpu::Vcpu for KvmVcpu { | KVM_REG_ARM64_SYSREG_CRN_MASK | KVM_REG_ARM64_SYSREG_CRM_MASK | KVM_REG_ARM64_SYSREG_OP2_MASK)) as u64); - Ok(self - .fd - .get_one_reg(id) - .map_err(|e| cpu::HypervisorCpuError::GetSysRegister(e.into()))? - .try_into() - .unwrap()) + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(id, &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetSysRegister(e.into()))?; + Ok(u64::from_le_bytes(bytes)) } /// @@ -1805,7 +1796,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, pstate), - PSTATE_FAULT_BITS_64.into(), + &PSTATE_FAULT_BITS_64.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; @@ -1814,7 +1805,10 @@ impl cpu::Vcpu for KvmVcpu { // Setting the PC (Processor Counter) to the current program address (kernel address). let pc = offset_of!(user_pt_regs, pc) + kreg_off; self.fd - .set_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, pc), boot_ip.into()) + .set_one_reg( + arm64_core_reg_id!(KVM_REG_SIZE_U64, pc), + &boot_ip.to_le_bytes(), + ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; // Last mandatory thing to set -> the address pointing to the FDT (also called DTB). @@ -1825,7 +1819,7 @@ impl cpu::Vcpu for KvmVcpu { self.fd .set_one_reg( arm64_core_reg_id!(KVM_REG_SIZE_U64, regs0), - fdt_start.into(), + &fdt_start.to_le_bytes(), ) .map_err(|e| cpu::HypervisorCpuError::SetCoreRegister(e.into()))?; } @@ -1990,14 +1984,13 @@ impl cpu::Vcpu for KvmVcpu { // register list, we are simply calling KVM_GET_ONE_REG. let indices = reg_list.as_slice(); for index in indices.iter() { + let mut bytes = [0_u8; 8]; + self.fd + .get_one_reg(*index, &mut bytes) + .map_err(|e| cpu::HypervisorCpuError::GetSysRegister(e.into()))?; sys_regs.push(kvm_bindings::kvm_one_reg { id: *index, - addr: self - .fd - .get_one_reg(*index) - .map_err(|e| cpu::HypervisorCpuError::GetSysRegister(e.into()))? - .try_into() - .unwrap(), + addr: u64::from_le_bytes(bytes), }); } @@ -2107,7 +2100,7 @@ impl cpu::Vcpu for KvmVcpu { // Set system registers for reg in &state.sys_regs { self.fd - .set_one_reg(reg.id, reg.addr.into()) + .set_one_reg(reg.id, ®.addr.to_le_bytes()) .map_err(|e| cpu::HypervisorCpuError::SetSysRegister(e.into()))?; } @@ -2270,19 +2263,22 @@ impl KvmVcpu { /// /// X86 specific call that returns the vcpu's current "xsave struct". /// - fn get_xsave(&self) -> cpu::Result { - self.fd + fn get_xsave(&self) -> cpu::Result { + Ok(self + .fd .get_xsave() - .map_err(|e| cpu::HypervisorCpuError::GetXsaveState(e.into())) + .map_err(|e| cpu::HypervisorCpuError::GetXsaveState(e.into()))? + .into()) } #[cfg(target_arch = "x86_64")] /// /// X86 specific call that sets the vcpu's current "xsave struct". /// - fn set_xsave(&self, xsave: &Xsave) -> cpu::Result<()> { + fn set_xsave(&self, xsave: &XsaveState) -> cpu::Result<()> { + let xsave: kvm_bindings::kvm_xsave = (*xsave).clone().into(); self.fd - .set_xsave(xsave) + .set_xsave(&xsave) .map_err(|e| cpu::HypervisorCpuError::SetXsaveState(e.into())) } diff --git a/hypervisor/src/kvm/x86_64/mod.rs b/hypervisor/src/kvm/x86_64/mod.rs index 78da26d60..cb4d069e3 100644 --- a/hypervisor/src/kvm/x86_64/mod.rs +++ b/hypervisor/src/kvm/x86_64/mod.rs @@ -10,7 +10,7 @@ use crate::arch::x86::{ CpuIdEntry, DescriptorTable, FpuState, LapicState, MsrEntry, SegmentRegister, SpecialRegisters, - StandardRegisters, CPUID_FLAG_VALID_INDEX, + StandardRegisters, XsaveState, CPUID_FLAG_VALID_INDEX, }; use crate::kvm::{Cap, Kvm, KvmError, KvmResult}; use serde::{Deserialize, Serialize}; @@ -23,7 +23,7 @@ pub use { kvm_bindings::kvm_lapic_state, kvm_bindings::kvm_mp_state as MpState, kvm_bindings::kvm_msr_entry, kvm_bindings::kvm_regs, kvm_bindings::kvm_segment, kvm_bindings::kvm_sregs, kvm_bindings::kvm_vcpu_events as VcpuEvents, - kvm_bindings::kvm_xcrs as ExtendedControlRegisters, kvm_bindings::kvm_xsave as Xsave, + kvm_bindings::kvm_xcrs as ExtendedControlRegisters, kvm_bindings::kvm_xsave, kvm_bindings::CpuId, kvm_bindings::MsrList, kvm_bindings::Msrs as MsrEntries, kvm_bindings::KVM_CPUID_FLAG_SIGNIFCANT_INDEX, }; @@ -64,7 +64,7 @@ pub struct VcpuKvmState { pub sregs: kvm_sregs, pub fpu: FpuState, pub lapic_state: LapicState, - pub xsave: Xsave, + pub xsave: XsaveState, pub xcrs: ExtendedControlRegisters, pub mp_state: MpState, pub tsc_khz: Option, @@ -330,3 +330,18 @@ impl From for kvm_msr_entry { } } } + +impl From for XsaveState { + fn from(s: kvm_xsave) -> Self { + Self { region: s.region } + } +} + +impl From for kvm_xsave { + fn from(s: XsaveState) -> Self { + Self { + region: s.region, + extra: Default::default(), + } + } +} diff --git a/net_gen/Cargo.toml b/net_gen/Cargo.toml index 263135807..cb7baa863 100644 --- a/net_gen/Cargo.toml +++ b/net_gen/Cargo.toml @@ -5,4 +5,4 @@ authors = ["The Chromium OS Authors"] edition = "2021" [dependencies] -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" diff --git a/net_util/Cargo.toml b/net_util/Cargo.toml index 675d05fee..dcdf40d03 100644 --- a/net_util/Cargo.toml +++ b/net_util/Cargo.toml @@ -12,14 +12,14 @@ log = "0.4.20" net_gen = { path = "../net_gen" } rate_limiter = { path = "../rate_limiter" } serde = "1.0.168" -thiserror = "1.0.40" -versionize = "0.1.10" -versionize_derive = "0.1.4" +thiserror = "1.0.52" +versionize = "0.2.0" +versionize_derive = "0.1.6" virtio-bindings = "0.2.0" -virtio-queue = "0.10.0" -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } +virtio-queue = "0.11.0" +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } vm-virtio = { path = "../vm-virtio" } -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" [dev-dependencies] once_cell = "1.18.0" diff --git a/pci/Cargo.toml b/pci/Cargo.toml index 122d54c6a..2fdc46e6a 100644 --- a/pci/Cargo.toml +++ b/pci/Cargo.toml @@ -17,14 +17,14 @@ vfio-bindings = { git = "https://github.com/rust-vmm/vfio", branch = "main", fea vfio-ioctls = { git = "https://github.com/rust-vmm/vfio", branch = "main", default-features = false } vfio_user = { git = "https://github.com/rust-vmm/vfio-user", branch = "main" } -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" libc = "0.2.147" log = "0.4.20" serde = { version = "1.0.168", features = ["derive"] } -thiserror = "1.0.40" -versionize = "0.1.10" -versionize_derive = "0.1.4" +thiserror = "1.0.52" +versionize = "0.2.0" +versionize_derive = "0.1.6" vm-allocator = { path = "../vm-allocator" } vm-device = { path = "../vm-device" } -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } vm-migration = { path = "../vm-migration" } diff --git a/rate_limiter/Cargo.toml b/rate_limiter/Cargo.toml index 6d9bfc9bc..91aeaf257 100644 --- a/rate_limiter/Cargo.toml +++ b/rate_limiter/Cargo.toml @@ -6,4 +6,5 @@ edition = "2021" [dependencies] libc = "0.2.147" log = "0.4.20" -vmm-sys-util = "0.11.0" +thiserror = "1.0.40" +vmm-sys-util = "0.12.1" diff --git a/test_infra/Cargo.toml b/test_infra/Cargo.toml index e0bb017ee..d8f5bfc83 100644 --- a/test_infra/Cargo.toml +++ b/test_infra/Cargo.toml @@ -12,5 +12,5 @@ once_cell = "1.18.0" serde = { version = "1.0.168", features = ["rc", "derive"] } serde_json = "1.0.107" ssh2 = { version = "0.9.4", features = ["vendored-openssl"] } -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" wait-timeout = "0.2.0" diff --git a/tests/integration.rs b/tests/integration.rs index bda58aeb1..24ab20521 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -9560,43 +9560,51 @@ mod live_migration { } #[test] + #[ignore = "See #6134"] fn test_live_upgrade_basic() { _test_live_migration(true, false) } #[test] + #[ignore = "See #6134"] fn test_live_upgrade_local() { _test_live_migration(true, true) } #[test] + #[ignore = "See #6134"] #[cfg(not(feature = "mshv"))] fn test_live_upgrade_numa() { _test_live_migration_numa(true, false) } #[test] + #[ignore = "See #6134"] #[cfg(not(feature = "mshv"))] fn test_live_upgrade_numa_local() { _test_live_migration_numa(true, true) } #[test] + #[ignore = "See #6134"] fn test_live_upgrade_watchdog() { _test_live_migration_watchdog(true, false) } #[test] + #[ignore = "See #6134"] fn test_live_upgrade_watchdog_local() { _test_live_migration_watchdog(true, true) } #[test] + #[ignore = "See #6134"] fn test_live_upgrade_balloon() { _test_live_migration_balloon(true, false) } #[test] + #[ignore = "See #6134"] fn test_live_upgrade_balloon_local() { _test_live_migration_balloon(true, true) } @@ -9630,6 +9638,7 @@ mod live_migration { } #[test] + #[ignore = "See #5532"] #[cfg(target_arch = "x86_64")] #[cfg(not(feature = "mshv"))] fn test_live_upgrade_ovs_dpdk_local() { diff --git a/tpm/Cargo.toml b/tpm/Cargo.toml index 2bee810b7..0e624e810 100644 --- a/tpm/Cargo.toml +++ b/tpm/Cargo.toml @@ -12,4 +12,4 @@ libc = "0.2.138" log = "0.4.17" net_gen = { path = "../net_gen" } thiserror = "1.0.37" -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" diff --git a/vhost_user_block/Cargo.toml b/vhost_user_block/Cargo.toml index 0eef71ad3..89fdb506e 100644 --- a/vhost_user_block/Cargo.toml +++ b/vhost_user_block/Cargo.toml @@ -13,9 +13,9 @@ epoll = "4.3.3" libc = "0.2.147" log = "0.4.20" option_parser = { path = "../option_parser" } -vhost = { version = "0.9.0", features = ["vhost-user-backend"] } -vhost-user-backend = "0.11.0" +vhost = { version = "0.10.0", features = ["vhost-user-backend"] } +vhost-user-backend = "0.13.1" virtio-bindings = "0.2.0" -virtio-queue = "0.10.0" -vm-memory = "0.13.1" -vmm-sys-util = "0.11.0" +virtio-queue = "0.11.0" +vm-memory = "0.14.0" +vmm-sys-util = "0.12.1" diff --git a/vhost_user_net/Cargo.toml b/vhost_user_net/Cargo.toml index e645ea0ba..9e216d08f 100644 --- a/vhost_user_net/Cargo.toml +++ b/vhost_user_net/Cargo.toml @@ -13,9 +13,8 @@ libc = "0.2.147" log = "0.4.20" net_util = { path = "../net_util" } option_parser = { path = "../option_parser" } -vhost = { version = "0.9.0", features = ["vhost-user-backend"] } -vhost-user-backend = "0.11.0" +vhost = { version = "0.10.0", features = ["vhost-user-backend"] } +vhost-user-backend = "0.13.1" virtio-bindings = "0.2.0" -vm-memory = "0.13.1" -vmm-sys-util = "0.11.0" - +vm-memory = "0.14.0" +vmm-sys-util = "0.12.1" diff --git a/virtio-devices/Cargo.toml b/virtio-devices/Cargo.toml index 6ce0a4819..8e1f32583 100644 --- a/virtio-devices/Cargo.toml +++ b/virtio-devices/Cargo.toml @@ -24,15 +24,15 @@ seccompiler = "0.4.0" serde = { version = "1.0.168", features = ["derive"] } serde_json = "1.0.107" serial_buffer = { path = "../serial_buffer" } -thiserror = "1.0.40" -versionize = "0.1.10" -versionize_derive = "0.1.4" -vhost = { version = "0.9.0", features = ["vhost-user-frontend", "vhost-user-backend", "vhost-kern", "vhost-vdpa"] } +thiserror = "1.0.52" +versionize = "0.2.0" +versionize_derive = "0.1.6" +vhost = { version = "0.10.0", features = ["vhost-user-frontend", "vhost-user-backend", "vhost-kern", "vhost-vdpa"] } virtio-bindings = { version = "0.2.0", features = ["virtio-v5_0_0"] } -virtio-queue = "0.10.0" +virtio-queue = "0.11.0" vm-allocator = { path = "../vm-allocator" } vm-device = { path = "../vm-device" } -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } vm-migration = { path = "../vm-migration" } vm-virtio = { path = "../vm-virtio" } -vmm-sys-util = "0.11.0" +vmm-sys-util = "0.12.1" diff --git a/vm-allocator/Cargo.toml b/vm-allocator/Cargo.toml index affbdb143..27f18d7c2 100644 --- a/vm-allocator/Cargo.toml +++ b/vm-allocator/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] libc = "0.2.147" -vm-memory = "0.13.1" +vm-memory = "0.14.0" [target.'cfg(target_arch = "aarch64")'.dependencies] arch = { path = "../arch" } diff --git a/vm-device/Cargo.toml b/vm-device/Cargo.toml index da58832f5..1d2e93e3b 100644 --- a/vm-device/Cargo.toml +++ b/vm-device/Cargo.toml @@ -15,5 +15,5 @@ hypervisor = { path = "../hypervisor" } thiserror = "1.0.40" serde = { version = "1.0.168", features = ["rc", "derive"] } vfio-ioctls = { git = "https://github.com/rust-vmm/vfio", branch = "main", default-features = false } -vm-memory = { version = "0.13.1", features = ["backend-mmap"] } -vmm-sys-util = "0.11.0" +vm-memory = { version = "0.14.0", features = ["backend-mmap"] } +vmm-sys-util = "0.12.1" diff --git a/vm-migration/Cargo.toml b/vm-migration/Cargo.toml index 7099b917d..e21ff4c58 100644 --- a/vm-migration/Cargo.toml +++ b/vm-migration/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" anyhow = "1.0.75" thiserror = "1.0.40" serde = { version = "1.0.168", features = ["rc", "derive"] } -serde_json = "1.0.107" -versionize = "0.1.10" -versionize_derive = "0.1.4" -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic"] } +serde_json = "1.0.109" +versionize = "0.2.0" +versionize_derive = "0.1.6" +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic"] } diff --git a/vm-virtio/Cargo.toml b/vm-virtio/Cargo.toml index 5e229cdad..1b279d34b 100644 --- a/vm-virtio/Cargo.toml +++ b/vm-virtio/Cargo.toml @@ -9,5 +9,5 @@ default = [] [dependencies] log = "0.4.20" -virtio-queue = "0.10.0" -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } +virtio-queue = "0.11.0" +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } diff --git a/vmm/Cargo.toml b/vmm/Cargo.toml index b5c9b4c77..42e9737a6 100644 --- a/vmm/Cargo.toml +++ b/vmm/Cargo.toml @@ -38,7 +38,7 @@ hypervisor = { path = "../hypervisor" } igvm_defs = { git = "https://github.com/microsoft/igvm", branch = "main", package = "igvm_defs", optional = true } igvm_parser = { git = "https://github.com/microsoft/igvm", branch = "main", package = "igvm", optional = true } libc = "0.2.147" -linux-loader = { version = "0.10.0", features = ["elf", "bzimage", "pe"] } +linux-loader = { version = "0.11.0", features = ["elf", "bzimage", "pe"] } log = "0.4.20" micro_http = { git = "https://github.com/firecracker-microvm/micro-http", branch = "main" } mshv-bindings = { git = "https://github.com/rust-vmm/mshv", branch = "main", features = ["with-serde", "fam-wrappers"], optional = true } @@ -55,17 +55,17 @@ signal-hook = "0.3.17" thiserror = "1.0.40" tracer = { path = "../tracer" } uuid = "1.3.4" -versionize = "0.1.10" -versionize_derive = "0.1.4" +versionize = "0.2.0" +versionize_derive = "0.1.6" vfio-ioctls = { git = "https://github.com/rust-vmm/vfio", branch = "main", default-features = false } vfio_user = { git = "https://github.com/rust-vmm/vfio-user", branch = "main" } virtio-devices = { path = "../virtio-devices" } -virtio-queue = "0.10.0" +virtio-queue = "0.11.0" vm-allocator = { path = "../vm-allocator" } vm-device = { path = "../vm-device" } -vm-memory = { version = "0.13.1", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } +vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } vm-migration = { path = "../vm-migration" } vm-virtio = { path = "../vm-virtio" } -vmm-sys-util = { version = "0.11.0", features = ["with-serde"] } +vmm-sys-util = { version = "0.12.1", features = ["with-serde"] } zbus = { version = "3.11.1", optional = true } zerocopy = { version = "0.7.21", features = ["alloc","derive"] }