xen: Clean up pci_piix3_xen_ide_unplug()'s test for "not a CD"
authorMarkus Armbruster <armbru@redhat.com>
Wed, 3 Aug 2011 13:08:12 +0000 (15:08 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 6 Sep 2011 09:24:07 +0000 (11:24 +0200)
commit55f1d7a9830d7edf8c21080289eb4019ceab8962
tree64e9c308930a309811802b4fa9173774a4f82799
parenta2a3a5cf393eb9b72ee04de6a0680b6cb2a5c46e
xen: Clean up pci_piix3_xen_ide_unplug()'s test for "not a CD"

pci_piix3_xen_ide_unplug() unplugs only disks, not CD-ROMs.  It peeks
into the DriveInfo's BlockDriverState to distinguish between the two.
Unclean; use DriveInfo member media_cd, like xen_config_dev_blk().

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