ide scsi: Mess with geometry only for hard disk devices
commitb2df431407a099ad2fe87a76188d12d99ab12841
authorMarkus Armbruster <armbru@redhat.com>
Thu, 12 Jul 2012 16:52:31 +0000 (12 18:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 6 Aug 2012 20:39:14 +0000 (6 22:39 +0200)
tree7ca72f1216b4ae970fd903aeddc99c448e58c565
parent26b9b5fe17cc1b6be2e8bf8b9d16094f420bb8ad
ide scsi: Mess with geometry only for hard disk devices

Legacy -drive cyls=... are now ignored completely when the drive
doesn't back a hard disk device.  Before, they were first checked
against a hard disk's limits, then ignored.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/qdev.c
hw/scsi-disk.c