@@ -30,6 +30,7 @@ use crate::linux_direct_serial_agent::LinuxDirectSerialAgent;
3030use  crate :: openvmm:: BOOT_NVME_INSTANCE ; 
3131use  crate :: openvmm:: memdiff_vmgs; 
3232use  crate :: vm:: append_cmdline; 
33+ use  crate :: vm:: append_log_params_to_cmdline; 
3334use  crate :: vtl2_settings:: ControllerType ; 
3435use  crate :: vtl2_settings:: Vtl2LunBuilder ; 
3536use  crate :: vtl2_settings:: Vtl2StorageBackingDeviceBuilder ; 
@@ -587,19 +588,6 @@ impl PetriVmConfigSetupCore<'_> {
587588    } 
588589
589590    fn  load_firmware ( & self )  -> anyhow:: Result < LoadMode >  { 
590-         // Forward OPENVMM_LOG and OPENVMM_SHOW_SPANS to OpenHCL if they're set. 
591-         let  openhcl_tracing =
592-             if  let  Ok ( x)  = std:: env:: var ( "OPENVMM_LOG" ) . or_else ( |_| std:: env:: var ( "HVLITE_LOG" ) )  { 
593-                 format ! ( "OPENVMM_LOG={x}" ) 
594-             }  else  { 
595-                 "OPENVMM_LOG=debug" . to_owned ( ) 
596-             } ; 
597-         let  openhcl_show_spans = if  let  Ok ( x)  = std:: env:: var ( "OPENVMM_SHOW_SPANS" )  { 
598-             format ! ( "OPENVMM_SHOW_SPANS={x}" ) 
599-         }  else  { 
600-             "OPENVMM_SHOW_SPANS=true" . to_owned ( ) 
601-         } ; 
602- 
603591        Ok ( match  ( self . arch ,  & self . firmware )  { 
604592            ( MachineArch :: X86_64 ,  Firmware :: LinuxDirect  {  kernel,  initrd } )  => { 
605593                let  kernel = File :: open ( kernel. clone ( ) ) 
@@ -697,10 +685,8 @@ impl PetriVmConfigSetupCore<'_> {
697685
698686                let  mut  cmdline = command_line. clone ( ) ; 
699687
700-                 append_cmdline ( 
701-                     & mut  cmdline, 
702-                     format ! ( "panic=-1 reboot=triple {openhcl_tracing} {openhcl_show_spans}" ) , 
703-                 ) ; 
688+                 append_cmdline ( & mut  cmdline,  format ! ( "panic=-1 reboot=triple" ) ) ; 
689+                 append_log_params_to_cmdline ( & mut  cmdline) ; 
704690
705691                let  isolated = match  self . firmware  { 
706692                    Firmware :: OpenhclLinuxDirect  {  .. }  => { 
0 commit comments