From d8a1ad5952227d4215978538fa5a20253492156a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Fri, 8 Sep 2023 13:26:17 +0200 Subject: [PATCH] fix(x86_64/shutdown): don't try QEMU exit on Uhyve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/arch/x86_64/kernel/processor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/x86_64/kernel/processor.rs b/src/arch/x86_64/kernel/processor.rs index dd76fc939f..1194a1bdb1 100644 --- a/src/arch/x86_64/kernel/processor.rs +++ b/src/arch/x86_64/kernel/processor.rs @@ -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!(), } } }