blkfront: do not create a PV cdrom device if xen_hvm_guest
commitb98a409b80ac510c95b4f1bafdef28edaeabd3e7
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 29 Jul 2010 13:53:16 +0000 (29 14:53 +0100)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 29 Jul 2010 18:11:08 +0000 (29 11:11 -0700)
tree2c109585fa1354eae60e739a67955b4176cd3eac
parentc7f52cdc2f3e1733d3864e439ac2e92edd99ef31
blkfront: do not create a PV cdrom device if xen_hvm_guest

It is not possible to unplug emulated cdrom devices, and PV cdroms don't
handle media insert, eject and stream, so we are better off disabling PV
cdroms when running as a Xen HVM guest.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
drivers/block/xen-blkfront.c