# HG changeset patch
# User Anthony PERARD <anthony.perard@xxxxxxxxxx>
# Date 1294337088 0
# Node ID e18d9af29d2a31cffedb87bed759ec3202043c5d
# Parent 2c487c02d8d7a5c0401f25ebd39c39ad23c990e6
libxl: Lists qdisk device in libxl_device_disk_list
As libxl switch to qdisk when blktap isn't available, this patch makes
libxl_device_disk_list also list qdisk device. So
libxl_build_device_model_args_new will be able to add qdisk device to
the command line options of Qemu.
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/libxl/libxl.c | 1 +
1 files changed, 1 insertion(+)
diff -r 2c487c02d8d7 -r e18d9af29d2a tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Thu Jan 06 18:03:11 2011 +0000
+++ b/tools/libxl/libxl.c Thu Jan 06 18:04:48 2011 +0000
@@ -2549,6 +2549,7 @@ libxl_device_disk *libxl_device_disk_lis
*num = libxl_append_disk_list_of_type(ctx, domid, "vbd", &disks, &ndisks);
*num += libxl_append_disk_list_of_type(ctx, domid, "tap", &disks, &ndisks);
+ *num += libxl_append_disk_list_of_type(ctx, domid, "qdisk", &disks,
&ndisks);
return disks;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|