Stefano Stabellini
2011-Mar-10 18:38 UTC
[Xen-devel] [PATCH] 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. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> diff -r 6fa299ad15c8 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Wed Mar 09 17:25:44 2011 +0000 +++ b/tools/libxl/libxl.c Thu Mar 10 18:36:22 2011 +0000 @@ -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)); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2011-Mar-11 18:35 UTC
Re: [Xen-devel] [PATCH] libxl: do not try to use blktap with qdisk
Stefano Stabellini writes ("[Xen-devel] [PATCH] 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.Thanks, acked and applied to unstable and 4.1. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel