@@ -78,10 +78,10 @@ clean-rust:
7878# convenience recipe to run all tests with the given target and features (similar to CI)
7979test-like-ci config = default-target hypervisor = " kvm":
8080 @ # with default features
81- just test {{ config}} {{ if hypervisor == " mshv" { " mshv2" } else { " " } }}
81+ just test {{ config}}
8282
8383 @ # with only one driver enabled + build-metadata + init-paging
84- just test {{ config}} build-metadata,init-paging,{{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" {" mshv3" } else {" kvm" } }}
84+ just test {{ config}} build-metadata,init-paging,{{ if hypervisor == " mshv3" {" mshv3" } else {" kvm" } }}
8585
8686 @ # make sure certain cargo features compile
8787 just check
@@ -93,7 +93,7 @@ test-like-ci config=default-target hypervisor="kvm":
9393 just test-rust-crashdump {{ config}}
9494
9595 @ # test the tracing related features
96- {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
96+ {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
9797
9898like-ci config = default-target hypervisor = " kvm":
9999 @ # Ensure up-to-date Cargo.lock
@@ -130,19 +130,19 @@ like-ci config=default-target hypervisor="kvm":
130130 {{ if os () == " windows" { " just run-rust-examples " + config } else { " " } }}
131131
132132 @ # Run Rust examples - linux
133- {{ if os () == " linux" { " just run-rust-examples-linux " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
133+ {{ if os () == " linux" { " just run-rust-examples-linux " + config + " " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
134134
135135 @ # Run Rust Gdb tests
136- just test-rust-gdb-debugging {{ config }} {{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
136+ just test-rust-gdb-debugging {{ config }} {{ if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
137137
138138 @ # Run Rust Crashdump tests
139- just test-rust-crashdump {{ config}} {{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
139+ just test-rust-crashdump {{ config}} {{ if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
140140
141141 @ # Run Rust Tracing tests - linux
142- {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
142+ {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
143143
144144 @ # Run benchmarks
145- {{ if config == " release" { " just bench-ci main " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
145+ {{ if config == " release" { " just bench-ci main " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
146146
147147# runs all tests
148148test target = default-target features = " ": (test-unit target features) (test-isolated target features) (test-integration " rust" target features) (test-integration " c" target features) (test-doc target features)
@@ -174,13 +174,12 @@ test-integration guest target=default-target features="":
174174
175175# tests compilation with no default features on different platforms
176176test-compilation-no-default-features target = default-target :
177- @ # Linux should fail without a hypervisor feature (kvm, mshv, or mshv3)
177+ @ # Linux should fail without a hypervisor feature (kvm or mshv3)
178178 {{ if os () == " linux" { " ! " + cargo-cmd + " check -p hyperlight-host --no-default-features "+ target-triple-flag+ " 2> /dev/null" } else { " " } }}
179179 @ # Windows should succeed even without default features
180180 {{ if os () == " windows" { cargo-cmd + " check -p hyperlight-host --no-default-features" } else { " " } }}
181181 @ # Linux should succeed with a hypervisor driver but without init-paging
182182 {{ if os () == " linux" { cargo-cmd + " check -p hyperlight-host --no-default-features --features kvm" } else { " " } }} {{ target-triple-flag }}
183- {{ if os () == " linux" { cargo-cmd + " check -p hyperlight-host --no-default-features --features mshv2" } else { " " } }} {{ target-triple-flag }}
184183 {{ if os () == " linux" { cargo-cmd + " check -p hyperlight-host --no-default-features --features mshv3" } else { " " } }} {{ target-triple-flag }}
185184
186185# runs tests that exercise gdb debugging
@@ -310,7 +309,7 @@ tar-static-lib: (build-rust-capi "release") (build-rust-capi "debug")
310309# Downloads the benchmarks result from the given release tag.
311310# If tag is not given, defaults to latest release
312311# Options for os: "Windows", or "Linux"
313- # Options for Linux hypervisor: "kvm", "mshv", " mshv3"
312+ # Options for Linux hypervisor: "kvm", "mshv3"
314313# Options for Windows hypervisor: "hyperv"
315314# Options for cpu: "amd", "intel"
316315bench-download os hypervisor cpu tag = " ":
0 commit comments