aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/libxl.c3
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",