Skip to contentSkip to conversation

libxl: do not try to use blktap with qdisk

PATCH In review Stefano Stabellini 2 participants 2 messages Mar 10, 2011 – Mar 11, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: do not try to use blktap with qdisk

libxl_device_disk_add tries to use blktap when available even for qdisk devices, this patch fixes it.
This patch should be applied to xen 4.1.

tools/libxl/libxl.c +1 -1
diff -r 6fa299ad15c8 tools/libxl/libxl.c
@@ -966,7 +966,6 @@ int libxl_device_disk_add(libxl_ctx *ctx
             device.backend_kind = DEVICE_VBD;
             break;
         case DISK_BACKEND_TAP:
-        case DISK_BACKEND_QDISK: 
             if (libxl__blktap_enabled(&gc) && disk->format != DISK_FORMAT_EMPTY) {
                 const char *dev = libxl__blktap_devpath(&gc,
                                                disk->pdev_path, disk->format);
@@ -988,6 +987,7 @@ int libxl_device_disk_add(libxl_ctx *ctx
 
                 break;
             }
+        case DISK_BACKEND_QDISK: 
             flexarray_append(back, "params");
             flexarray_append(back, libxl__sprintf(&gc, "%s:%s",
                           libxl__device_disk_string_of_format(disk->format), disk->pdev_path));
#1 lore raw

Stefano Stabellini writes ("[Xen-devel] [PATCH] libxl: do not try to use blktap with qdisk"):

Quoted 3 lines

libxl_device_disk_add tries to use blktap when available even for qdisk devices, this patch fixes it.
This patch should be applied to xen 4.1.

Thanks, acked and applied to unstable and 4.1.

Ian.