]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
atapi: kill MODE SENSE(6), fix MODE SENSE(10)
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Nov 2011 13:31:47 +0000 (14:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Nov 2011 12:54:32 +0000 (13:54 +0100)
commit2c20ae11adcfab94441da31460e86c6e15719084
tree8580d85deff64a7b5d4d574e3f34b924f6521785
parent245d0049475206995ed39e36ecb95b0ca08878e6
atapi: kill MODE SENSE(6), fix MODE SENSE(10)

Mode page 2A of emulated ATAPI DVD-ROM should have page length 0x14
like SCSI CD-ROM, rather than 0x12.

Mode page length is off by 8, as it should contain the length of the
payload after the first two bytes.

MODE SENSE(6) should be thrown out of ATAPI DVD-ROM emulation.  It is
not specified in the ATAPI list of MMC-2, and MMC-5 prescribes to use
MODE SENSE(10).  Anyway, its implementation is wrong.

Reported-by: Thomas Schmitt <scdbackup@gmx.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c