]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
CTL: Allow userland supply tags via ioctl frontend.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 3 Dec 2022 17:05:05 +0000 (12:05 -0500)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 3 Dec 2022 17:05:05 +0000 (12:05 -0500)
commit7467a6953683b439f7b31c2b42533cb893ed6be3
tree6cd9dc680bd34cd1e730755be4c24be188b0ccf5
parentfcdcfa218956fb246313b3994f5649dbd532b914
CTL: Allow userland supply tags via ioctl frontend.

Before this ioctl frontend always replaced tags with sequential ones.
It was done for ctladm, that can not keep track of global tag list.
But in case of virtio-scsi in bhyve we can pass provided tags as-is.
It should be on virtio-scsi initiator to provide us valid tags.  It
should allow proper task management, error reporting, etc.  In case
of several virtio-scsi devices, they should use different CTL ports
or initiator IDs to avoid conflicts, but this is expected by design.

PR: 267539
sys/cam/ctl/ctl_frontend_ioctl.c
sys/cam/ctl/ctl_io.h
usr.sbin/bhyve/pci_virtio_scsi.c