mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
7a3e6caca4
The existing code was a bit too complex and it was introducing a bug when trying to paste long lines directly to the console. By simplifying the code, and by doing proper usage of the drain() function, the bug is fixed by this commit. Here is the similar output one could have gotten from time to time, when pasting important amounts of bytes: ERROR:vm-virtio/src/console.rs:104 -- Failed to write slice: InvalidGuestAddress(GuestAddress(1040617472)) Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>