qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Discuss] is it good to add codes providing information to


From: Wayne Xia
Subject: [Qemu-devel] [Discuss] is it good to add codes providing information to libvirt about the qemu's capabilities
Date: Fri, 08 Jul 2011 17:08:10 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11

   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:address@hidden
tel:86-010-82450803




reply via email to

[Prev in Thread] Current Thread [Next in Thread]