From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lr7E9-00057m-2u for qemu-devel@nongnu.org; Tue, 07 Apr 2009 05:04:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lr7E3-00056n-DT for qemu-devel@nongnu.org; Tue, 07 Apr 2009 05:04:15 -0400 Received: from [199.232.76.173] (port=42494 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lr7E3-00056k-4K for qemu-devel@nongnu.org; Tue, 07 Apr 2009 05:04:11 -0400 Received: from mx20.gnu.org ([199.232.41.8]:65101) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lr7E2-00063t-Jt for qemu-devel@nongnu.org; Tue, 07 Apr 2009 05:04:10 -0400 Received: from mx1.redhat.com ([66.187.233.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lr7E1-0001jZ-AN for qemu-devel@nongnu.org; Tue, 07 Apr 2009 05:04:09 -0400 Date: Tue, 7 Apr 2009 10:04:05 +0100 From: "Daniel P. Berrange" Message-ID: <20090407090405.GB8651@redhat.com> References: <49DABC83.7010608@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49DABC83.7010608@codemonkey.ws> Subject: [Qemu-devel] Re: Changing the QEMU svn VERSION string Reply-To: "Daniel P. Berrange" , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: libvir-list@redhat.com, "qemu-devel@nongnu.org" , kvm-devel On Mon, Apr 06, 2009 at 09:37:55PM -0500, Anthony Liguori wrote: > Hi, > > I'd like to update the VERSION string in QEMU's svn tree. Right now, > it's 0.10.0 and since we have a 0.10.2 release, that's somewhat confusing. > > I don't want to make it 0.11.0 either because that's not going to be > reliable from a feature detection perspective. What I would like is to > make it 0.11.0-devel or something similar to that. > > Being the nice guy I am, I thought I would check that this didn't make > libvirt go bonkers :-) This is the relevant detection code in libvirt: > > > if (sscanf(help, "QEMU PC emulator version %u.%u.%u (kvm-%u)", > &major, &minor, µ, &kvm_version) != 4) > kvm_version = 0; > > if (!kvm_version && sscanf(help, "QEMU PC emulator version u.%u.%u", > &major, &minor, µ) != 3) > goto cleanup2; > > If I change SVN to 0.11.0-devel, that's going to break the KVM string > although the QEMU string will continue to work. Avi could potentially > carry a patch to keep it 0.10.x and since kvm-%u will be used to > identify features, that should keep things working. The only things we use the KVM version for are to decide whether migration and vnet_hdr flag for tun devices is supported. These checks are already outdated since 0.10.0 QEMU now has support for migration, and thus needs updating. So if you choose to go with '0.11.0-devel' it won't cause any huge problems for us, and I'll change this code to make it more forgiving of version number string changes in future. Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|