Skip to contentSkip to conversation

libata-scsi: set CmdQue bit in standard INQUIRY data to 1

PATCH RESEND In review [email protected] 1 participant 1 message Jul 12, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/2 libata-scsi: set CmdQue bit in standard INQUIRY data to 1

From: Tom Yan <[email protected]>

Avoid performance bottleneck when being SCSI pass-through'd to virtual machines with other OSes (e.g. Windows) via virtio-scsi and scsi-block in qemu.

Ref.: https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/63

drivers/ata/libata-scsi.c +4 -1
index bfec66f..0a35164 100644
@@ -2097,7 +2097,10 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf)
 		0,
 		0x5,	/* claim SPC-3 version compatibility */
 		2,
-		95 - 4
+		95 - 4,
+		0,
+		0,
+		2
 	};
 
 	VPRINTK("ENTER\n");
Signature · 1 line
2.9.0