crosvm/devices/src
Dylan Reid 4d1d6dcad7 vhost_user_devices: add block device
The vhost user block device can be started as follows:
```
cargo run --features=block --bin vhost-user-block-device -- \
  --file vhost_test.img --socket /tmp/vhost_user_blk.socket
```

Or a read only disk:
```
cargo run --features=block --bin vhost-user-block-device -- \
  --file vhost_test.img:read-only --socket /tmp/vhost_user_blk.socket
```

And tested with a crosvm instance as follows:
```
cargo run -- run --disable-sandbox --rwroot debian.ext4 \
  -p "console=hvc0 root=/dev/vda rw" \
  --vhost-user-blk /tmp/vhost_user_blk.socket bzImage
```
The vhost-user-block device will appear as /dev/vdb.

BUG=b:179755342

Change-Id: Ie8c10dad8978e0f4a381e06576239df1e8174db5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2948103
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
2021-06-18 01:40:53 +00:00
..
irqchip devices: irqchip: rewrite if-let-else None with ? 2021-05-22 00:43:29 +00:00
pci devices: vfio: Fix io bar index calculation 2021-05-26 17:55:42 +00:00
register_space
usb devices: pci: add PciDevice function to get BARs 2021-05-07 00:37:49 +00:00
utils devices: Fix racy event_loop_test 2021-06-08 18:54:48 +00:00
virtio vhost_user_devices: add block device 2021-06-18 01:40:53 +00:00
acpi.rs devices: acpi: collapsed nested if inside else 2021-05-06 22:06:57 +00:00
bat.rs replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00
bus.rs replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00
cmos.rs
direct_io.rs crosvm-direct: p-t support for port and memory I/O. 2021-04-01 03:02:44 +00:00
direct_irq.rs
i8042.rs
lib.rs devices: add "usb" feature for emulated xHCI 2021-05-24 21:37:22 +00:00
pit.rs
pl030.rs
proxy.rs devices: Deduplicate mapped file descriptors. 2021-05-03 23:09:47 +00:00
serial.rs
serial_device.rs
vfio.rs devices: vfio: use vec![] in keep_rds 2021-05-06 22:06:54 +00:00