[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2 of 3] xl: Remove libxl_need_xenpv_qemu()
tools/libxl/libxl.c | 33 --------------------------------- tools/libxl/libxl.h | 4 ---- 2 files changed, 0 insertions(+), 37 deletions(-) # HG changeset patch # User Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> # Date 1294158577 0 # Node ID deb521c7f86fe761a9eed8e3ef55942087eb90fa # Parent 01a1ce470640c67cf507e1f64a32561443b43061 xl: Remove libxl_need_xenpv_qemu() It appears to have been made redundant with no users in-tree. Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> diff -r 01a1ce470640 -r deb521c7f86f tools/libxl/libxl.c --- a/tools/libxl/libxl.c Tue Jan 04 16:01:58 2011 +0000 +++ b/tools/libxl/libxl.c Tue Jan 04 16:29:37 2011 +0000 @@ -2654,39 +2654,6 @@ static int libxl_build_xenpv_qemu_args(l return 0; } -int libxl_need_xenpv_qemu(libxl_ctx *ctx, - int nr_consoles, libxl_device_console *consoles, - int nr_vfbs, libxl_device_vfb *vfbs, - int nr_disks, libxl_device_disk *disks) -{ - int i, ret = 0; - libxl__gc gc = LIBXL_INIT_GC(ctx); - - if (nr_consoles > 1) { - ret = 1; - goto out; - } - - for (i = 0; i < nr_consoles; i++) { - if (consoles[i].consback == LIBXL_CONSBACK_IOEMU) { - ret = 1; - goto out; - } - } - - if (nr_vfbs > 0) { - ret = 1; - goto out; - } - - if (nr_disks > 0 && !libxl__blktap_enabled(&gc)) - ret = 1; - -out: - libxl__free_all(&gc); - return ret; -} - int libxl_create_xenpv_qemu(libxl_ctx *ctx, uint32_t domid, libxl_device_vfb *vfb, libxl_device_model_starting **starting_r) { diff -r 01a1ce470640 -r deb521c7f86f tools/libxl/libxl.h --- a/tools/libxl/libxl.h Tue Jan 04 16:01:58 2011 +0000 +++ b/tools/libxl/libxl.h Tue Jan 04 16:29:37 2011 +0000 @@ -383,10 +383,6 @@ int libxl_create_device_model(libxl_ctx libxl_device_model_starting **starting_r); int libxl_create_xenpv_qemu(libxl_ctx *ctx, uint32_t domid, libxl_device_vfb *vfb, libxl_device_model_starting **starting_r); -int libxl_need_xenpv_qemu(libxl_ctx *ctx, - int nr_consoles, libxl_device_console *consoles, - int nr_vfbs, libxl_device_vfb *vfbs, - int nr_disks, libxl_device_disk *disks); /* Caller must either: pass starting_r==0, or on successful * return pass *starting_r (which will be non-0) to * libxl_confirm_device_model or libxl_detach_device_model. */ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |