git: b4cc5d63b611 - main - bhyve/virtio: use correct device id for virtio-scsi
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Jan 2022 18:47:48 UTC
The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=b4cc5d63b6112746598d21413c9800a43171da52 commit b4cc5d63b6112746598d21413c9800a43171da52 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2022-01-31 18:44:47 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2022-01-31 18:44:47 +0000 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 --- usr.sbin/bhyve/virtio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/virtio.h b/usr.sbin/bhyve/virtio.h index 5731baa0dd0d..5300fb5dbef3 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 #define VIRTIO_DEV_INPUT 0x1052