xen-org/xen-api — pull request #420 by djs55 (2011-12-11 09:16:43+00:00)
Title: CA-70699: expose CDROMs to PV guests with device-type=cdrom rather than ...

...disk.

This information is used by the guest to (eg) decide whether to recognise
partitions within the disk. Note we don't support PV CDROMs in the sense of
media sense/ eject/ insert.

Note that we must special-case HVM guests CDROMs because
1. we must prevent blkback from opening the physical-device, since this
would cause a subsequent qemu eject, vdi_deactivate to block
2. qemu expects the CDROM configuration to be in xenstore, as a PV
disk configuration

Signed-off-by: David Scott