uapi/virtio_scsi: allow overriding CDB/SENSE size
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Mar 2015 13:19:03 +0000 (14:19 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Mar 2015 17:24:29 +0000 (18:24 +0100)
commit2106ba30105969262a7810417a57524d9a225b91
tree044e69f4438dd48eb912212677df09d09f7a0cc3
parente7cc8ba22ece189a44fa08671426cbc4377e2056
uapi/virtio_scsi: allow overriding CDB/SENSE size

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 <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
include/standard-headers/linux/virtio_scsi.h