summary refs log tree commit diff
path: root/src/linux.rs
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2020-03-09 13:04:00 -0700
committerCommit Bot <commit-bot@chromium.org>2020-03-19 19:47:10 +0000
commite5113047d5440bf09b2596f8a43f12d8e2b0061d (patch)
treee3454ad44c66e65662e2ce2e27608e5c471b322e /src/linux.rs
parent9486e57a097aeb98ccb33776aefa523be795b661 (diff)
downloadcrosvm-e5113047d5440bf09b2596f8a43f12d8e2b0061d.tar
crosvm-e5113047d5440bf09b2596f8a43f12d8e2b0061d.tar.gz
crosvm-e5113047d5440bf09b2596f8a43f12d8e2b0061d.tar.bz2
crosvm-e5113047d5440bf09b2596f8a43f12d8e2b0061d.tar.lz
crosvm-e5113047d5440bf09b2596f8a43f12d8e2b0061d.tar.xz
crosvm-e5113047d5440bf09b2596f8a43f12d8e2b0061d.tar.zst
crosvm-e5113047d5440bf09b2596f8a43f12d8e2b0061d.zip
devices: virtio: add virtio-console device
This is a virtio device that provides a serial console.  It has
constructors matching the existing Serial device (new_in_out, new_out,
and new_sink) that take generic io::Read and io::Write streams.

This change just adds the device code; additional changes are required
to add the console device to the command-line parsing and device setup
code.

BUG=chromium:1059924
TEST=boot linux with console=hvc0

Change-Id: I917157d5ecb5160c9b00b499eabe6fb08486776c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2095534
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Diffstat (limited to 'src/linux.rs')
0 files changed, 0 insertions, 0 deletions