[libvirt] [PATCH] Mark Xen PV CD-ROM devices as such

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User John Levon <john.levon@xxxxxxx>
# 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@xxxxxxx>

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);
     }

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]