From: Ian Jackson Subject: Re: [PATCH v2 0/3] libxl, Handle the command line options of qemu 0.12. Date: Tue, 10 Aug 2010 16:20:40 +0100 Message-ID: <19553.28232.576527.853858@mariner.uk.xensource.com> References: <1280938265-12107-1-git-send-email-anthony.perard@citrix.com> <1281115425-8417-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1281115425-8417-1-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: anthony.perard@citrix.com Cc: xen-devel@lists.xensource.com, Stefano.Stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org anthony.perard@citrix.com writes ("[Xen-devel] [PATCH v2 0/3] libxl, Handle the command line options of qemu 0.12."): > This patch gives the ability to the libxl to handle the command line > argument of the last qemu version. I begin by checking the version > of the device model with '-h' options, '--version' is not handled in > qemu-xen. If I found a version upper than 0.12, I use the new > command line argument, or else I use the old functions to build > args. I see I'm too late with this but I agree with the comments that checking the version number is not the right approach. The right approach, it seems to me, is to call strstr() on a copy of the qemu-dm -h output to try to see whether it supports each particular variant. Ian.