Re: [Qemu-devel] [RFC PATCH v2 09/13] scsi: introduce the scsi-target device

2011-06-07 Thread Stefan Hajnoczi
On Mon, Jun 06, 2011 at 06:04:18PM +0200, Paolo Bonzini wrote: > +static SCSIRequest *scsi_new_request(SCSIDevice *d, DeviceState *initiator, > + uint32_t tag, uint32_t lun) > +{ > +SCSITargetState *s = DO_UPCAST(SCSITargetState, qdev, d); > +SCSIRequest *re

[Qemu-devel] [RFC PATCH v2 09/13] scsi: introduce the scsi-target device

2011-06-06 Thread Paolo Bonzini
This introduces a device that dispatches SCSI requests according to the "LUN" field of a hierarchical LUN. In addition, the device always processes REPORT LUNS commands, as well as commands for invalid and well-known LUNs. Finally, the device implements dummy INQUIRY emulation in case the user se