runtime-rs: add the console device to kernel boot for qemu

Add the console device to kernel boot, thus we can log
out the kernel's boot message for debug.

Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
Fupan Li
2025-09-10 13:55:08 +08:00
parent c1ee0985ed
commit 5715408d61

View File

@@ -2410,6 +2410,10 @@ impl<'a> QemuCmdLine<'a> {
console_socket_chardev.set_server(true);
console_socket_chardev.set_wait(false);
self.devices.push(Box::new(console_socket_chardev));
self.kernel
.params
.append(&mut KernelParams::from_string("console=hvc0"));
}
pub fn add_virtio_balloon(&mut self) {