scsi: Split qdev "scsi-disk" into "scsi-hd" and "scsi-cd"
commitb443ae67130d32ad06b06fc9aa6d04d05ccd93ce
authorMarkus Armbruster <armbru@redhat.com>
Mon, 16 May 2011 13:04:53 +0000 (16 15:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2011 08:26:09 +0000 (19 10:26 +0200)
treeca85ced8cacf73e994bc7c723abbc8ec4906bfd0
parent1f56e32a7f4b3a60bbabc499a63f3b858f472306
scsi: Split qdev "scsi-disk" into "scsi-hd" and "scsi-cd"

A "scsi-disk" is either a hard disk or a CD-ROM, depending on the
associated BlockDriverState's type hint.  Unclean; disk vs. CD belongs
to the guest part, not the host part.

Have separate qdevs "scsi-hd" and "scsi-cd" to model disk vs. CD in
the guest part.

Keep scsi-disk for backward compatibility.

Don't copy scsi-disk property removable to scsi-cd.  It's not used and
always zero(!) there.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c