Mark Xen PV CD-ROM devices as such

This commit is contained in:
John Levon 2009-01-14 16:21:12 +00:00
parent d052118dae
commit 5b6c39f51f
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Jan 14 16:17:20 GMT 2009 John Levon <levon@movementarian.org>
* src/xend_internal.c: Add a ':cdrom' marker for PV as well as
HVM devices.
Wed Jan 14 15:13:17 GMT 2009 John Levon <levon@movementarian.org>
* acinclude.m4:

View File

@ -5024,6 +5024,8 @@ xenDaemonFormatSxprDisk(virConnectPtr conn ATTRIBUTE_UNUSED,
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);
}