Fix ATAPI GET_CONFIGURATION function (Alexander Graf, Carlo Marcelo Arenas Belon).
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 2 Jun 2008 03:12:06 +0000 (03:12 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 2 Jun 2008 03:12:06 +0000 (03:12 +0000)
commit091d055b3e6cab13ac3d6b151fcacdcfc059f03e
treefb7aab9b8f937e224263d49c6faac0f71ceea9a9
parenta60de94777518d1324817050b297aa12c5ab264a
Fix ATAPI GET_CONFIGURATION function (Alexander Graf, Carlo Marcelo Arenas Belon).

The current implementation of GET_CONFIGURATION in the ATAPI stack of qemu
replies a different length depending on the buffer, the data should be
written into.

On the other hand the SCSI spec defines that length information has to be
consistent and independent of return buffer lengths.

This patch makes the ATAPI emulation behave according to the spec and fixes
the Darwin DVD driver.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Kevin Wolf <kwolf@suse.de>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4649 c046a42c-6fe2-441c-8c8c-71466251a162
hw/ide.c