File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed
src/hyperlight_host/src/hypervisor Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ impl GuestView {
7575 } )
7676 . collect ( ) ;
7777
78+ // The filename and command line are set to null-terminated strings
7879 let filename = if let Some ( mut binary) = ctx. filename . clone ( ) {
7980 binary. push ( '\0' ) ;
8081
Original file line number Diff line number Diff line change @@ -701,6 +701,7 @@ impl Hypervisor for HypervLinuxDriver {
701701 regs[ 25 ] = sregs. fs . selector as u64 ; // fs
702702 regs[ 26 ] = sregs. gs . selector as u64 ; // gs
703703
704+ // Get the filename from the binary path
704705 let filename = self . metadata . binary_path . clone ( ) . map ( |path| {
705706 Path :: new ( & path)
706707 . file_name ( )
Original file line number Diff line number Diff line change @@ -531,6 +531,7 @@ impl Hypervisor for HypervWindowsDriver {
531531 regs[ 25 ] = unsafe { sregs. fs . Segment . Selector } as u64 ; // fs
532532 regs[ 26 ] = unsafe { sregs. gs . Segment . Selector } as u64 ; // gs
533533
534+ // Get the filename from the metadata
534535 let filename = self . metadata . binary_path . clone ( ) . map ( |path| {
535536 Path :: new ( & path)
536537 . file_name ( )
Original file line number Diff line number Diff line change @@ -625,6 +625,7 @@ impl Hypervisor for KVMDriver {
625625 regs[ 25 ] = sregs. fs . selector as u64 ; // fs
626626 regs[ 26 ] = sregs. gs . selector as u64 ; // gs
627627
628+ // Get the filename from the metadata
628629 let filename = self . metadata . binary_path . clone ( ) . map ( |path| {
629630 Path :: new ( & path)
630631 . file_name ( )
You can’t perform that action at this time.
0 commit comments