mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
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> |
||
---|---|---|
.. | ||
irqchip | ||
pci | ||
register_space | ||
usb | ||
utils | ||
virtio | ||
acpi.rs | ||
bat.rs | ||
bus.rs | ||
cmos.rs | ||
direct_io.rs | ||
direct_irq.rs | ||
i8042.rs | ||
lib.rs | ||
pit.rs | ||
pl030.rs | ||
proxy.rs | ||
serial.rs | ||
serial_device.rs | ||
vfio.rs |