From: Jim Fehlig Date: Fri, 20 Jun 2014 05:36:25 +0000 (-0600) Subject: libxl: prefer qdisk for X-Git-Tag: v1.2.6-rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48d81cef3b2dff6fe02bd7c8f0bf4f5aff917d8c;p=thirdparty%2Flibvirt.git libxl: prefer qdisk for The libxl driver currently sets the disk backend to LIBXL_DISK_BACKEND_TAP when is specified in the config. qdisk should be prefered with this configuration, otherwise existing configuration such as the following, which worked with the old Xen driver, will not work with the libxl driver In addition, tap performs poorly compared to qdisk. --- diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index fdbb522c17..4b6b5c0819 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -796,7 +796,7 @@ libxlMakeDisk(virDomainDiskDefPtr l_disk, libxl_device_disk *x_disk) return -1; } x_disk->format = LIBXL_DISK_FORMAT_RAW; - x_disk->backend = LIBXL_DISK_BACKEND_TAP; + x_disk->backend = LIBXL_DISK_BACKEND_QDISK; } else if (STREQ(driver, "phy")) { if (format != VIR_STORAGE_FILE_NONE && format != VIR_STORAGE_FILE_RAW) {