From f0499a0c256a248155d3edb0069fad16a738f473 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Fri, 3 May 2013 13:23:03 +0200 Subject: [PATCH] libxl: don't write physical-device node for driver domain disks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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é Acked-by: Ian Jackson --- tools/libxl/libxl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", -- 2.39.5