Skip to content

Commit

Permalink
fix(x86_64/shutdown): don't try QEMU exit on Uhyve
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Sep 8, 2023
1 parent 00f93f0 commit d8a1ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/arch/x86_64/kernel/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -997,11 +997,12 @@ pub fn shutdown() -> ! {
PlatformInfo::LinuxBootParams { .. } => without_interrupts(|| loop {
halt();
}),
_ => {
PlatformInfo::Multiboot { .. } => {
// Try QEMU's debug exit
let exit_handler = qemu_exit::X86::new(0xf4, 3);
exit_handler.exit_success()
}
PlatformInfo::Uhyve { .. } => todo!(),
}
}
}
Expand Down

0 comments on commit d8a1ad5

Please sign in to comment.