aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Wing <rew@FreeBSD.org>2022-01-31 18:44:47 +0000
committerRobert Wing <rew@FreeBSD.org>2022-02-10 19:45:56 +0000
commitcd6bdac0818a44f4faceddc485e314855c0b3f11 (patch)
treee546baacb73de3d9d86ca41ae8f798a4e4958df6
parent583480174ee7f4af92f0c5302884a7eece5b12f3 (diff)
bhyve/virtio: use correct device id for virtio-scsi
Section 4.1.2.1 of the virtio spec states that the transitional PCI device id for a scsi device is 0x1004. Fix suggested by reporter. PR: 259961 Reported by: me@nanaya.pro Reviewed by: imp, jhb Fixes: f9c005a17f4e ("Add bhyve virtio-scsi storage backend support.") Differential Revision: https://reviews.freebsd.org/D34103 (cherry picked from commit b4cc5d63b6112746598d21413c9800a43171da52)
-rw-r--r--usr.sbin/bhyve/virtio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/virtio.h b/usr.sbin/bhyve/virtio.h
index 5b2cf6fe2cc8..a14765e49764 100644
--- a/usr.sbin/bhyve/virtio.h
+++ b/usr.sbin/bhyve/virtio.h
@@ -168,8 +168,8 @@
#define VIRTIO_DEV_NET 0x1000
#define VIRTIO_DEV_BLOCK 0x1001
#define VIRTIO_DEV_CONSOLE 0x1003
+#define VIRTIO_DEV_SCSI 0x1004
#define VIRTIO_DEV_RANDOM 0x1005
-#define VIRTIO_DEV_SCSI 0x1008
#define VIRTIO_DEV_9P 0x1009
/* From section 2.3, "Virtqueue Configuration", of the virtio specification */