Skip to content

Commit

Permalink
lumper: Pass stdin buffers to the guest
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Samuel Ortiz committed Jan 28, 2022
1 parent 1a88955 commit 8e7e869
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vmm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,12 @@ impl VMM {

let count = stdin_lock.read_raw(&mut out).map_err(Error::StdinRead)?;

println!("Read {:?} from STDIN", out[0]);
self.serial
.lock()
.unwrap()
.serial
.enqueue_raw_bytes(&out[..count])
.map_err(Error::StdinWrite)?;
}
}
}
Expand Down

0 comments on commit 8e7e869

Please sign in to comment.