Hello, From: Paolo Bonzini <pbonz...@redhat.com> 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; > > > > - if (scsi_req_parse(&cmd, d, buf) != 0) { > > + if (scsi_req_parse(&cmd, d, buf, > > + ((VirtIOSCSIReq *) hba_private)->dev->parent_obj.cdb_size) != > > 0) { > > trace_scsi_req_parse_bad(d->id, lun, tag, buf[0]); > > req = scsi_req_alloc(&reqops_invalid_opcode, d, tag, lun, > > hba_private); > > } else { > > This function is not called only for virtio-scsi. You need to add a new > argument to scsi_req_new, and modify all invocations in hw/scsi. Thank you for your quick response. It is just as you say. I will send the revised patch soon. Regards, TAMUKI Shoichi