On 01/23/2012 07:14 PM, Thomas Higdon wrote:
> Can you please also do the same REPORT LUNS and INQUIRY in hw/scsi-bus.c?
You're talking about the scsi_target_emulate_report_luns() and
scsi_target_emulate_inquiry() functions in hw/scsi-bus.c? By my read of
the code, these appear safe. In both functions, I see len getting set
via calls to MIN with r->req->cmd.xfer as one of the arguments. If
you're referring to something else, can you be more specific?
Ugh, you're right, sorry. I just looked for if.*xfer.
Paolo