@@ -10,12 +10,15 @@ use petri::PetriHaltReason;
1010use petri:: PetriVmBuilder ;
1111use petri:: PetriVmmBackend ;
1212use petri:: ProcessorTopology ;
13+ use petri:: ResolvedArtifact ;
1314use petri:: SIZE_1_GB ;
1415use petri:: ShutdownKind ;
1516use petri:: openvmm:: OpenVmmPetriBackend ;
1617use petri:: pipette:: cmd;
1718use petri_artifacts_common:: tags:: MachineArch ;
1819use petri_artifacts_common:: tags:: OsFlavor ;
20+ #[ cfg( target_os = "linux" ) ]
21+ use petri_artifacts_vmm_test:: artifacts:: OPENVMM_VHOST_NATIVE ;
1922use vmm_test_macros:: openvmm_test;
2023use vmm_test_macros:: vmm_test;
2124use vmm_test_macros:: vmm_test_with;
@@ -481,10 +484,13 @@ async fn guest_test_uefi<T: PetriVmmBackend>(config: PetriVmBuilder<T>) -> anyho
481484/// virtio transport → frontend protocol → socket → backend protocol →
482485/// virtio-blk device → disk file.
483486#[ cfg( target_os = "linux" ) ]
484- #[ openvmm_test( linux_direct_x64, linux_direct_aarch64) ]
485- async fn vhost_user_blk_device (
487+ #[ openvmm_test(
488+ linux_direct_x64[ OPENVMM_VHOST_NATIVE ] ,
489+ linux_direct_aarch64[ OPENVMM_VHOST_NATIVE ] ,
490+ ) ]
491+ async fn vhost_user_blk_device < T > (
486492 config : PetriVmBuilder < OpenVmmPetriBackend > ,
487- _extra_deps : ( ) ,
493+ extra_deps : ( ResolvedArtifact < T > , ) ,
488494 driver : pal_async:: DefaultDriver ,
489495) -> anyhow:: Result < ( ) > {
490496 use openvmm_defs:: config:: VirtioBus ;
@@ -493,8 +499,8 @@ async fn vhost_user_blk_device(
493499 use virtio_resources:: vhost_user:: VhostUserDeviceHandle ;
494500 use vm_resource:: IntoResource ;
495501
496- let openvmm_vhost_path =
497- petri_artifact_resolver_openvmm_known_paths :: get_output_executable_path ( "openvmm_vhost" ) ? ;
502+ let ( openvmm_vhost_artifact , ) = extra_deps ;
503+ let openvmm_vhost_path = openvmm_vhost_artifact . get ( ) ;
498504
499505 let log_file = config. log_source ( ) . log_file ( "openvmm_vhost" ) ?;
500506
0 commit comments