Re: [Qemu-devel] [PATCH] scsi-bus: fix to allow some special SCSI commands

2014-07-12 Thread TAMUKI Shoichi
Hello, From: Paolo Bonzini Subject: Re: [PATCH] scsi-bus: fix to allow some special SCSI commands Date: Fri, 11 Jul 2014 11:02:41 +0200 > > @@ -563,7 +565,8 @@ SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, > > uint32_t lun, > > SCSIRequest *req; > > SCSICommand cmd; > > > > -

[Qemu-devel] [PATCH] scsi-bus: fix to allow some special SCSI commands

2014-07-11 Thread TAMUKI Shoichi
Currently, some special SCSI commands sent from the initiator in a guest do not reach the target device. To avoid this, extended (0x7e,) variable length (0x7f,) and vendor specific (0xc0..0xff) opcodes are now treated as valid CDBs. Originally, the most significant 3 bits of a SCSI opcode specifi

Re: [Qemu-devel] [PATCH] scsi-bus: fix to allow some special SCSI commands

2014-07-11 Thread Paolo Bonzini
Il 11/07/2014 10:53, TAMUKI Shoichi ha scritto: @@ -563,7 +565,8 @@ SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun, SCSIRequest *req; SCSICommand cmd; -if (scsi_req_parse(&cmd, d, buf) != 0) { +if (scsi_req_parse(&cmd, d, buf, +((VirtIOSCSIReq