From 8e7e86992a4a489196a73e3624819380916d71d6 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Sun, 12 Dec 2021 14:28:00 +0100 Subject: [PATCH] lumper: Pass stdin buffers to the guest Signed-off-by: Samuel Ortiz --- src/vmm/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vmm/src/lib.rs b/src/vmm/src/lib.rs index c72bfea..55d8511 100644 --- a/src/vmm/src/lib.rs +++ b/src/vmm/src/lib.rs @@ -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)?; } } }