OSDN Git Service

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)
commitf9e8fda4796c0e8aebfc1e7ddf9bed6865adab02
tree64e9c308930a309811802b4fa9173774a4f82799
parent07b70bfbb3f3aea9ce7a3a1da78cbfa8ae6bbce6
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