Skip to content

Commit 057ed6a

Browse files
authored
openvmm_entry: fix serial console output (#919)
#900 broke console serial output. Re-add this to fix it.
1 parent e05da3a commit 057ed6a

File tree

1 file changed

+2
-0
lines changed
  • openvmm/openvmm_entry/src

1 file changed

+2
-0
lines changed

openvmm/openvmm_entry/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ fn vm_config_from_command_line(
193193
opt: &Options,
194194
) -> anyhow::Result<(Config, VmResources)> {
195195
let (_, serial_driver) = DefaultPool::spawn_on_thread("serial");
196+
// Ensure the serial driver stays alive with no tasks.
197+
serial_driver.spawn("leak", pending::<()>()).detach();
196198

197199
let openhcl_vtl = if opt.vtl2 {
198200
DeviceVtl::Vtl2

0 commit comments

Comments
 (0)