Re: [Qemu-devel] [PATCH] ide: Implement VPD response for ATAPI

2014-12-10 Thread John Snow
On 12/09/2014 05:35 AM, Stefan Hajnoczi wrote: On Thu, Dec 04, 2014 at 01:59:19PM -0500, John Snow wrote: diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index c63b7e5..d27c34b 100644 --- a/hw/ide/atapi.c +++ b/hw/ide/atapi.c @@ -622,19 +622,98 @@ static void cmd_request_sense(IDEState *s, uint8_

Re: [Qemu-devel] [PATCH] ide: Implement VPD response for ATAPI

2014-12-09 Thread Stefan Hajnoczi
On Thu, Dec 04, 2014 at 01:59:19PM -0500, John Snow wrote: > diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c > index c63b7e5..d27c34b 100644 > --- a/hw/ide/atapi.c > +++ b/hw/ide/atapi.c > @@ -622,19 +622,98 @@ static void cmd_request_sense(IDEState *s, uint8_t *buf) > static void cmd_inquiry(IDEStat

[Qemu-devel] [PATCH] ide: Implement VPD response for ATAPI

2014-12-04 Thread John Snow
SCSI devices have multiple kinds of queries they need to respond to, as defined in the "cmd inquiry" section in MMC-6 and SPC-3. Relevent sections: MMC-6 revision 2g: Non-VPD response data and pointer to SPC-3; Section 6.8 "Inquiry Command" SPC-3 revision 23: Inquiry command and