diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2013-05-03 13:23:03 +0200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-05-08 12:06:59 +0100 |
commit | f0499a0c256a248155d3edb0069fad16a738f473 (patch) | |
tree | d6ace2deb6a77a7d3d48bf0f270ce035ec817a51 /tools/libxl | |
parent | 05bfd984dfe7014f1f5ea1133608b9bab589c120 (diff) | |
download | xen-f0499a0c256a248155d3edb0069fad16a738f473.tar.gz xen-f0499a0c256a248155d3edb0069fad16a738f473.tar.bz2 xen-f0499a0c256a248155d3edb0069fad16a738f473.zip |
libxl: don't write physical-device node for driver domain disks
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>
Diffstat (limited to 'tools/libxl')
-rw-r--r-- | tools/libxl/libxl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 87bda724bf..bc91fd5abf 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -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", |