atapi/scsi-disk: make mode page values coherent between the two
commita07c7dcd6f33b668747148ac28c0e147f958aa18
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2011 13:08:22 +0000 (13 15:08 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:50 +0000 (28 19:25 +0200)
tree08ac31ca4c0bcce5b81c09bfa93d96237425fef9
parenta8f4bbe2900f0ebdead032fb8da137777bddd925
atapi/scsi-disk: make mode page values coherent between the two

This patch adds to scsi-disk the missing mode page 0x01 for both disk
and CD-ROM drives, and mode page 0x0e for CD drives only.

A few offsets were wrong in atapi.c.  Also change the 2Ah mode page to
expose DVD media read capabilities in the IDE cdrom.  This lets you run
dvd+rw-mediainfo on the virtual DVD drives.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c
hw/scsi-disk.c