Re: [Xen-devel] [PATCH] libxl: prefer qdisk for <driver name='file'>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Jun 2014, Jim Fehlig wrote:
> The libxl driver currently sets the disk backend to
> LIBXL_DISK_BACKEND_TAP when <driver name='file'> is specified
> in the <disk> 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
> 
>   <disk type='file' device='cdrom'>
>     <driver name='file'/>
>     <source file='/path/to/some/iso'/>
>     <target dev='hdc' bus='ide'/>
>     <readonly/>
>   </disk>
> 
> In addition, tap performs poorly compared to qdisk.
> 
> Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx>

Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>


>  src/libxl/libxl_conf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
> index fdbb522..4b6b5c0 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) {
> -- 
> 1.8.4.5
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]