From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf730-0002x1-Li for qemu-devel@nongnu.org; Fri, 08 Jul 2011 05:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qf72y-0004PG-49 for qemu-devel@nongnu.org; Fri, 08 Jul 2011 05:08:30 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:50944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf72x-0004OV-81 for qemu-devel@nongnu.org; Fri, 08 Jul 2011 05:08:27 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp09.au.ibm.com (8.14.4/8.13.1) with ESMTP id p6898Gk0023990 for ; Fri, 8 Jul 2011 19:08:16 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6896hmD1126450 for ; Fri, 8 Jul 2011 19:06:45 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6898D8W028429 for ; Fri, 8 Jul 2011 19:08:13 +1000 Received: from [127.0.0.1] ([9.125.239.227]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p68989wL028322 for ; Fri, 8 Jul 2011 19:08:12 +1000 Message-ID: <4E16C8FA.8010603@linux.vnet.ibm.com> Date: Fri, 08 Jul 2011 17:08:10 +0800 From: Wayne Xia MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [Discuss] is it good to add codes providing information to libvirt about the qemu's capabilities List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Currently libvirt seems to invoke qemu by "qemu -help" onetime, and then analysis the output text to find whether one type of device the qemu could support. For example, if "qemu -help" prints a text with "-sdl" then libvirt thought the qemu could accept that. But here comes a problem: the output text seems not to adjust its output according to the qemu's compile configuration, so it is possible libvirt invoke qemu with -sdl but get "qemu exit" response that "SDL support is disabled". By default, the sdl is disabled, and the libvirt thought it is on. I wonder if it is a good idea to modify the help function in vl.c, to let it adjust -help output according to the configuration, but this would hide some option of "-help" invocation. -- Best Regards Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803