crosvm/e2e_tests/tests
Daniel Verkamp dfbdd75de9 devices: virtio: use mass storage class for block devices
This is slightly different than the PCI class code used by QEMU, which
is 0x0100 (mass storage, SCSI controller). We instead use 0x0180 to
indicate a mass storage controller with a non-standardized/vendor
specific programming interface (ref: PCI Code and ID Assignment
Specification).

SCSI isn't really accurate for a virtio-blk device (our implementation
does not accept SCSI commands at all, although there is a pre-virtio-1.0
option for sending them).

The Linux virtio-blk guest driver does not care about the PCI class code
either way (it only matches on the PCI vendor+device ID range assigned
for virtio devices and uses the virtio-specific device type to
distinguish between e.g. virtio-blk and virtio-scsi), so it should be
fine to use the Other/Vendor-specific subclass code.

lspci diff:
-00:04.0 Unclassified device [00ff]: Red Hat, Inc. Virtio block device [1af4:1042] (rev 01)
+00:04.0 Mass storage controller [0180]: Red Hat, Inc. Virtio block device [1af4:1042] (rev 01)

BUG=None
TEST=lspci -vvvnnn # "Mass storage controller" for block devices

Change-Id: I7958dbb1c197fe52afb386ebb9afa9f5107a56cd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4740712
Reviewed-by: Morg <morg@google.com>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-08-09 17:58:26 +00:00
..
goldens devices: virtio: use mass storage class for block devices 2023-08-09 17:58:26 +00:00
backcompat.rs e2e_tests: Restructure for initial benchmark support 2023-02-23 22:11:48 +00:00
block.rs e2e_tests: snapshot vhost user tests 2023-05-15 21:11:42 +00:00
boot.rs base: handle EINTR in Tube recv methods 2023-07-28 01:30:27 +00:00
fs.rs device: fs/9p: add options to specify uid and gid 2023-04-10 18:47:41 +00:00
pci_hotplug.rs crosvm: virtio-net device hotplug 2023-07-27 04:35:26 +00:00
prebuilts.rs e2e_tests: remove unnecessary reference 2023-04-11 20:44:34 +00:00
snd.rs e2e_tests: snd: Increase aplay buffer size in do_playback 2023-04-11 02:57:25 +00:00
suspend_resume.rs e2e_tests: remove suspend_resume test disclaimer 2023-07-14 21:46:53 +00:00
vsock.rs devices: enable Error return when sleep/wake/snapshot fail 2023-08-01 01:19:59 +00:00