scripts: build mshv feature for ivshmem testing

The ivshmem tests are all failing in the CI for MSHV because Cloud
Hypervisor is built without the mshv feature.

Error: Cloud Hypervisor exited with the following chain of errors:
  0: Failed to open hypervisor interface (is hypervisor interface
       available?)
  1: Failed to create the hypervisor
  2: no supported hypervisor

Modify the build command to include the mshv feature.

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
This commit is contained in:
Anirudh Rayabharam 2025-10-28 11:06:26 +00:00 committed by Rob Bradford
parent f033c5837b
commit f74cde7882

View file

@ -207,7 +207,7 @@ if [ $RES -eq 0 ]; then
fi
if [ $RES -eq 0 ]; then
cargo build --features ivshmem --all --release --target "$BUILD_TARGET"
cargo build --features "mshv,ivshmem" --all --release --target "$BUILD_TARGET"
export RUST_BACKTRACE=1
time cargo test $test_features "ivshmem::$test_filter" --target "$BUILD_TARGET" -- ${test_binary_args[*]}
RES=$?