crosvm/fuzz
Daniel Verkamp 4e1f99a68d devices: virtio: block: add VIRTIO_BLK_T_GET_ID
Allow the user to specify a serial number for each virtio block device
using the new id= parameter:

  crosvm run --disk disk.img,id=SERIALNO ...

These serial numbers show up in sysfs for each block device, which
allows them to be uniquely identified regardless of the number or order
of block devices added on the crosvm command line.  This can be used to
find a specific device by serial number for mounting at boot time.

BUG=b:157687637
BUG=chromium:775781
TEST=crosvm run -r vm_rootfs.img,id=root -p init=/bin/bash vm_kernel
TEST=cat /sys/block/vda/serial # see serial is set to "root"
TEST=cargo test -p devices

Change-Id: I108cdc47c367fb038d6acd55da60f9e1aae59e68
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2225559
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2020-12-02 05:21:16 +00:00
..
.build_test_skip build_test: misc options, improvements, amd bug fixes 2020-10-15 13:40:32 +00:00
.gitignore
block_fuzzer.rs devices: virtio: block: add VIRTIO_BLK_T_GET_ID 2020-12-02 05:21:16 +00:00
Cargo.toml fuse: extract FUSE as a crate from virtio/fs 2020-10-27 16:18:51 +00:00
fs_server_fuzzer.rs fuse: extract FUSE as a crate from virtio/fs 2020-10-27 16:18:51 +00:00
OWNERS fuzz: update to use new cros fuzzing 2019-03-25 17:43:51 -07:00
qcow_fuzzer.rs fuzz: replace SharedMemory with tempfile 2020-10-12 09:45:46 +00:00
usb_descriptor_fuzzer.rs fuzz: convert fuzzers to cros_fuzz framework 2019-10-28 20:30:18 +00:00
virtqueue_fuzzer.rs vm_memory: A crate to hold vm-specific memory objects 2020-07-24 21:42:34 +00:00
zimage_fuzzer.rs fuzz: replace SharedMemory with tempfile 2020-10-12 09:45:46 +00:00