Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-04-26 Thread Guy Harris
On Mar 26, 2012, at 2:17 AM, Cong Meng wrote: > I drafted some description. Should I make an HTML version? Yes, matching the style of the other ones, once the issues that are raised are resolved. (Of course, for the diagrams, we just cheat and use .) > LINKTYPE_VIRTIO_SCSI > > Packet structu

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-08 Thread Paolo Bonzini
Il 06/03/2012 21:51, Stefan Hajnoczi ha scritto: >>> Are "sense_len" and "sense_size" the same thing - i.e., is sense_len >>> the size of the sense data? >>> >> >>> >> No, sense_size is a fixed value for the device. It is part of the >>> >> device configuration and then all responses us

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Stefan Hajnoczi
On Tue, Mar 6, 2012 at 8:49 PM, Guy Harris wrote: > > On Mar 6, 2012, at 11:45 AM, Stefan Hajnoczi wrote: > >> On Tue, Mar 6, 2012 at 7:28 PM, Guy Harris wrote: >> >>> Are "sense_len" and "sense_size" the same thing - i.e., is sense_len the >>> size of the sense data? >> >> No, sense_size is a f

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Stefan Hajnoczi
On Tue, Mar 6, 2012 at 7:28 PM, Guy Harris wrote: > > On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > >> Responses have the following layout: >> >>    u32 sense_len; >>    u32 residual; >>    u16 status_qualifier; >>    u8 status; >>    u8 response; >>    u8 sense[sense_size]; >>    char data

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Guy Harris
On Mar 6, 2012, at 11:45 AM, Stefan Hajnoczi wrote: > On Tue, Mar 6, 2012 at 7:28 PM, Guy Harris wrote: > >> Are "sense_len" and "sense_size" the same thing - i.e., is sense_len the >> size of the sense data? > > No, sense_size is a fixed value for the device. It is part of the > device conf

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Stefan Hajnoczi
On Tue, Mar 6, 2012 at 6:54 PM, Guy Harris wrote: > > On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > >> There are SCSI commands and responses.  Commands and responses are >> separate pcap packets because there can be multiple outstanding >> commands to multiple targets/LUNs. >> >> From the s

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Guy Harris
On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > Responses have the following layout: > >u32 sense_len; >u32 residual; >u16 status_qualifier; >u8 status; >u8 response; >u8 sense[sense_size]; >char datain[]; Are "sense_len" and "sense_size" the same thing - i.e.,

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Guy Harris
On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > There are SCSI commands and responses. Commands and responses are > separate pcap packets because there can be multiple outstanding > commands to multiple targets/LUNs. > > From the spec, commands have the following layout: > >u8 lun[8];

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-03 Thread Stefan Hajnoczi
On Tue, Feb 28, 2012 at 11:05 AM, Stefan Hajnoczi wrote: Sorry for the delay, I didn't realize you had replied. I am not subscribed to this mailing list, please Reply-All and keep me CCed. >> The QEMU system emulator now supports the virtio-scsi SCSI transport >> for efficient virtualized SCSI

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-02-28 Thread Guy Harris
On Feb 28, 2012, at 3:05 AM, Stefan Hajnoczi wrote: > The QEMU system emulator now supports the virtio-scsi SCSI transport > for efficient virtualized SCSI I/O. I would like to support > virtio-scsi debugging and analysis with pcap. > > The pcap data will include the virtio buffers containing S

[tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-02-28 Thread Stefan Hajnoczi
The QEMU system emulator now supports the virtio-scsi SCSI transport for efficient virtualized SCSI I/O. I would like to support virtio-scsi debugging and analysis with pcap. The pcap data will include the virtio buffers containing SCSI command metadata, CDB, and data-out buffer. A similar struc