# HG changeset patch
# User John Levon <john.levon(a)sun.com>
# Date 1231946129 28800
# Node ID 53c621a65055f4752abef748c0ad15cbb1d8013d
# Parent bde7017c447cf36451194e64179b60e1c8d9f039
Mark Xen PV CD-ROM devices as such
Add a ':cdrom' marker for PV as well as HVM devices.
Signed-off-by: John Levon <john.levon(a)sun.com>
diff --git a/src/xend_internal.c b/src/xend_internal.c
--- a/src/xend_internal.c
+++ b/src/xend_internal.c
@@ -5025,6 +5025,8 @@ xenDaemonFormatSxprDisk(virConnectPtr co
virBufferVSprintf(buf, "(dev '%s:%s')", def->dst,
def->device == VIR_DOMAIN_DISK_DEVICE_CDROM ?
"cdrom" : "disk");
+ } else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
+ virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
} else {
virBufferVSprintf(buf, "(dev '%s')", def->dst);
}