summary refs log tree commit diff
path: root/src/hw/virtio/queue.rs
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2017-08-04 00:00:14 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-10 20:24:09 -0700
commitc28f6a67b16d2bb8e113bfd09ec8238069fa14c0 (patch)
tree1e958c87ddf356aca277e56c7a7b10465730dcd3 /src/hw/virtio/queue.rs
parentd579e3cd49c50bd06465c277f030ada3217e2a24 (diff)
downloadcrosvm-c28f6a67b16d2bb8e113bfd09ec8238069fa14c0.tar
crosvm-c28f6a67b16d2bb8e113bfd09ec8238069fa14c0.tar.gz
crosvm-c28f6a67b16d2bb8e113bfd09ec8238069fa14c0.tar.bz2
crosvm-c28f6a67b16d2bb8e113bfd09ec8238069fa14c0.tar.lz
crosvm-c28f6a67b16d2bb8e113bfd09ec8238069fa14c0.tar.xz
crosvm-c28f6a67b16d2bb8e113bfd09ec8238069fa14c0.tar.zst
crosvm-c28f6a67b16d2bb8e113bfd09ec8238069fa14c0.zip
crosvm: Add virtio random
Provide the guest OS with /dev/random.

Change-Id: I1323836392f3f1d59a6be276ce495e0d78ea9669
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/603531
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'src/hw/virtio/queue.rs')
-rw-r--r--src/hw/virtio/queue.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hw/virtio/queue.rs b/src/hw/virtio/queue.rs
index 894b9b9..b288427 100644
--- a/src/hw/virtio/queue.rs
+++ b/src/hw/virtio/queue.rs
@@ -96,6 +96,7 @@ impl<'a> DescriptorChain<'a> {
     /// If the driver designated this as a write only descriptor.
     ///
     /// If this is false, this descriptor is read only.
+    /// Write only means the the emulated device can write and the driver can read.
     pub fn is_write_only(&self) -> bool {
         self.flags & VIRTQ_DESC_F_WRITE != 0
     }