ide: Split qdev "ide-drive" into "ide-hd" and "ide-cd"
authorMarkus Armbruster <armbru@redhat.com>
Mon, 16 May 2011 13:04:52 +0000 (15:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2011 08:26:04 +0000 (10:26 +0200)
commit1f56e32a7f4b3a60bbabc499a63f3b858f472306
tree4cbecb4efc0f646c7056bfcde22ab22404740be3
parent77a5a0001bd9eaee9da7dc8f0b69702d56b0cc67
ide: Split qdev "ide-drive" into "ide-hd" and "ide-cd"

An "ide-drive" 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 "ide-hd" and "ide-cd" to model disk vs. CD in
the guest part.

Keep ide-drive for backward compatibility.

"ide-disk" would perhaps be a nicer name than "ide-hd", but there's
already "scsi-disk", which is like "ide-drive", and will be likewise
split in the next commit.  {ide,scsi}-{hd,cd} is the best consistent
set of names I could find within the backward compatibility
straightjacket.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c
hw/ide/internal.h
hw/ide/qdev.c