]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
libxl: don't write physical-device node for driver domain disks
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 3 May 2013 11:23:03 +0000 (13:23 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 May 2013 11:06:59 +0000 (12:06 +0100)
This will be handled by the driver domain itself, since the toolstack
does not have access to the physical device because it is in a
different domain.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c

index 87bda724bfb842f9e8f32a31bbe51fa31d4b4f54..bc91fd5abf6487432ecf4995c9154828d0e1f062 100644 (file)
@@ -2104,7 +2104,8 @@ static void device_disk_add(libxl__egc *egc, uint32_t domid,
                  * responsible for this since the block device may not
                  * exist yet.
                  */
-                if (!disk->script) {
+                if (!disk->script &&
+                    disk->backend_domid == LIBXL_TOOLSTACK_DOMID) {
                     int major, minor;
                     libxl__device_physdisk_major_minor(dev, &major, &minor);
                     flexarray_append_pair(back, "physical-device",