opnsense-src/sys/dev/virtio
Andriy Gapon adbf6af741 virtio_scsi: use max target ID plus one as the initiator ID
This bus does not really have a concept of the initiator ID, so use
a guaranteed dummy one that won't conflict with any real target.

This change fixes a problem with virtio_scsi on GCE where disks get
sequential target IDs starting from one.  If there are seven or more
disks, then a disk with the target ID of seven would not be discovered
by FreeBSD as that ID was reserved as the initiator ID -- see
scsi_scan_bus().

Discussed with:	bryanv
MFC after:	2 weeks
Sponsored by:	Panzura
2020-01-23 10:13:56 +00:00
..
balloon Introduce vm_page_astate. 2019-12-10 18:14:50 +00:00
block virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
console virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
mmio virtio: Fix running on machines with memory above 0xffffffff 2019-07-26 19:16:02 +00:00
network Pacify gcc. 2020-01-11 20:07:30 +00:00
pci virtio: Fix running on machines with memory above 0xffffffff 2019-07-26 19:16:02 +00:00
random virtio_random(4): Drop no longer needed unload kludge 2019-12-30 01:40:59 +00:00
scsi virtio_scsi: use max target ID plus one as the initiator ID 2020-01-23 10:13:56 +00:00
virtio.c virtio(4): Expose PNP metadata through newbus 2019-06-04 02:34:59 +00:00
virtio.h virtio(4): Add PNP match metadata for virtio devices 2019-06-04 02:37:11 +00:00
virtio_bus_if.m Add VirtIO bus config_generation method 2018-02-19 19:28:24 +00:00
virtio_config.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio_ids.h Sync VirtIO IDs with Linux 2018-01-14 06:03:40 +00:00
virtio_if.m Add optional VirtIO device method for post-attach notifications 2013-09-01 04:20:23 +00:00
virtio_ring.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtqueue.c Add more virtqueue getter methods 2018-02-19 19:31:18 +00:00
virtqueue.h Add more virtqueue getter methods 2018-02-19 19:31:18 +00:00