Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae4cc73

Browse files
committedNov 15, 2024··
fix: Refactor vmm builder code to simplify logic
fix up aarch64 attach_legacy_devices_aarch64 fn Signed-off-by: tommady <[email protected]>
1 parent 10343e4 commit ae4cc73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/vmm/src/builder.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ pub mod aarch64 {
168168
if cmdline_contains_console {
169169
// Make stdout non-blocking.
170170
set_stdout_nonblocking();
171-
let serial = setup_serial_device(event_manager, std::io::stdin(), std::io::stdout())?;
171+
let serial = setup_serial_device(std::io::stdin(), std::io::stdout())?;
172+
event_manager.add_subscriber(serial.clone());
173+
172174
vmm.mmio_device_manager
173175
.register_mmio_serial(vmm.vm.fd(), &mut vmm.resource_allocator, serial, None)
174176
.map_err(VmmError::RegisterMMIODevice)?;

0 commit comments

Comments
 (0)
Please sign in to comment.