Skip to contentSkip to conversation

Allow changing CD for /dev/xvdX devices.

PATCH New Kasai Takanori 1 participant 1 message Mar 17, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow changing CD for /dev/xvdX devices.

Hi All,

We found the issue being not able to change CD on the HVM-Domain. It is possible on the /dev/hdc device,
but it is impossible on the/dev/xvdc device.

We want to work it as all /dev/xvdX devices on the HVM-domain
as well as on the PV-domain.

The execution method is as follows.
----------------------------------------------------------------------
Domain configuration file:
disk = ["tap:aio:/<guest image file>,xvda,w", ",xvdc:cdrom,r"]

Operation that assign CD:

 # xm block-configure <domain> file:<iso image> xvdc:cdrom r

Operation that releases CD

 # xm block-configure <domain> '' xvdc:cdrom r
----------------------------------------------------------------------

Best Regards,

---
Takanori Kasai

xenstore.c +0 -4
index 05a1c22..89b1938 100644
@@ -968,10 +968,6 @@ void xenstore_process_event(void *opaque)
             xenstore_watch_callbacks[i].cb(vec[XS_WATCH_TOKEN],
                                            xenstore_watch_callbacks[i].opaque);
 
-    if (strncmp(vec[XS_WATCH_TOKEN], "hd", 2) ||
-        strlen(vec[XS_WATCH_TOKEN]) != 3)
-        goto out;
-
     hd_index = drive_name_to_index(vec[XS_WATCH_TOKEN]);
     if (hd_index == -1) {
 	fprintf(stderr,"medium change watch on `%s' -"

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel