cloud-hypervisor/vm-virtio
Sebastien Boeuf 7a3e6caca4 vm-virtio: Simplify virtio-console input processing
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>
2020-01-08 15:37:02 +01:00
..
src vm-virtio: Simplify virtio-console input processing 2020-01-08 15:37:02 +01:00
Cargo.toml vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>> 2020-01-02 13:20:11 +00:00