List, Please find a patch to fix scsi_cmd_xfer_mode() so that qemu will use the correct transfer direction for SCSI-GENERIC devices for the opcodes UNMAP WRITE_SAME_16 ATA_PASSTHROUGH
Without this patch, any recent linux guest kernels (3.x) will panic if qemu are presenting a scsi-generic device to the guest. regards ronnie sahlberg