aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux/virtio_scsi.h
AgeCommit message (Collapse)AuthorFilesLines
2015-03-13uapi/virtio_scsi: allow overriding CDB/SENSE sizeMichael S. Tsirkin1-2/+10
QEMU wants to use virtio scsi structures with a different VIRTIO_SCSI_CDB_SIZE/VIRTIO_SCSI_SENSE_SIZE, let's add ifdefs to allow overriding them. Keep the old defines under new names: VIRTIO_SCSI_CDB_DEFAULT_SIZE/VIRTIO_SCSI_SENSE_DEFAULT_SIZE, since that's what these values really are: defaults for cdb/sense size fields. Suggested-by: Paolo Bonzini <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
2014-12-09virtio_scsi: export to userspaceMichael S. Tsirkin1-37/+37
Replace uXX by __uXX and _packed by __attribute((packed)) as seems to be the norm for userspace headers. Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Paolo Bonzini <[email protected]>
2014-12-09virtio_scsi: move to uapiMichael S. Tsirkin1-0/+164
Guests need to use virtio scsi API, so export it to uapi, nice to e.g. qemu and will help us remember this file affects ABI. Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Paolo Bonzini <[email protected]>