From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH 3/3]: xl: allow long listing of Domain 0 Date: Mon, 9 Aug 2010 15:55:41 +0200 Message-ID: <4C6008DD.4040306@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060200090306070100000001" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Yang Hongyang , Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --------------060200090306070100000001 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Hi, currently xl list aborts when one tries to list -l Domain 0 (either explicitly or by listing all domains): # xl list -l 0 Neither kernel nor bootloader specified Ignore this error message (which is invalid for Dom0). I haven't found an obvious way to check for Dom0 before printing this message, so I simply removed the exit() call here. Regards, Andre. Signed-off-by: Andre Przywara -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448-3567-12 --------------060200090306070100000001 Content-Type: text/x-patch; name="libxl_list_3.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="libxl_list_3.patch" diff -r 8992134dcfd0 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Wed Aug 04 19:24:17 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Mon Aug 09 16:03:33 2010 +0200 @@ -454,7 +454,7 @@ printf("\t\t)\n"); } else { printf("\t\t(linux %d)\n", b_info->hvm); - printf("\t\t\t(kernel %s)\n", b_info->kernel.path); + printf("\t\t\t(kernel %s)\n", b_info->kernel.path ?: ""); printf("\t\t\t(cmdline %s)\n", b_info->u.pv.cmdline); printf("\t\t\t(ramdisk %s)\n", b_info->u.pv.ramdisk.path); printf("\t\t)\n"); @@ -706,7 +706,6 @@ if (!b_info->u.pv.bootloader && !b_info->kernel.path) { fprintf(stderr, "Neither kernel nor bootloader specified\n"); - exit(1); } b_info->u.pv.cmdline = cmdline; --------------060200090306070100000001 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------060200090306070100000001--