Skip to content

Commit cc8a48d

Browse files
committed
fixup
Signed-off-by: Doru Blânzeanu <[email protected]>
1 parent d7f28ad commit cc8a48d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/hyperlight_host/src/hypervisor/crashdump.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

src/hyperlight_host/src/hypervisor/hyperv_linux.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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()

src/hyperlight_host/src/hypervisor/hyperv_windows.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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()

src/hyperlight_host/src/hypervisor/kvm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)