Received: from eggs.gnu.org ([2001:4830:134:3::10]:55939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHsG4-0001N9-0p for qemu-devel@nongnu.org; Thu, 23 Nov 2017 09:13:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHsFy-0006kD-CP for qemu-devel@nongnu.org; Thu, 23 Nov 2017 09:13:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59436) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eHsFy-0006hn-3v for qemu-devel@nongnu.org; Thu, 23 Nov 2017 09:13:34 -0500 References: <20171110152017.24324-1-clg@kaod.org> <20171110152017.24324-2-clg@kaod.org> <715a7bd1-7aa5-fa64-a9b8-76782ee20576@redhat.com> <20171123110345.03541b50.cohuck@redhat.com> <1dff6d6c-be83-f6e1-2b7e-82d98bdb8a63@redhat.com> <6dd7061e-2ebe-7a51-8142-f67d5d75a81a@redhat.com> <8cd1c0b3-8386-d41e-ccfb-1a2073cdf4fb@redhat.com> <16011ac4-77c4-af75-5754-5f9586d6d629@redhat.com> <20171123130908.6ab004d3.cohuck@redhat.com> <20171123133924.60e9f616.cohuck@redhat.com> <1519a9dc-5f0b-7ddd-18ac-d1f33782656d@redhat.com> <8fd03968-7cf7-d5b8-630b-a8a55d4e49f2@redhat.com> From: Paolo Bonzini Message-ID: Date: Thu, 23 Nov 2017 15:13:22 +0100 MIME-Version: 1.0 In-Reply-To: <8fd03968-7cf7-d5b8-630b-a8a55d4e49f2@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU 3.0 ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , Peter Maydell Cc: Cornelia Huck , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , QEMU Developers , David Gibson , Greg Kurz , Markus Armbruster , "Daniel P. Berrange" , Eric Blake , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , =?UTF-8?Q?Sergio_Andr=c3=a9s_G=c3=b3mez_Del_Real?= , Alex Bligh On 23/11/2017 15:01, Thomas Huth wrote: > On 23.11.2017 14:57, Peter Maydell wrote: >> On 23 November 2017 at 13:51, Paolo Bonzini wrote: >>> On 23/11/2017 14:13, Peter Maydell wrote: >>>> On 23 November 2017 at 13:02, Paolo Bonzini wrote: >>>>> In theory I don't like it either (and I hadn't thought about it until >>>>> today). In practice, qemu-kvm is not going away from >>>>> blogs/scripts/tutorials in a decade, so we might as well embrace it... >>>> Isn't this distro-specific? In ubuntu by default there isn't >>>> any wrapper, and if you do install the optional 'qemu-kvm' package >>>> the wrapper it provides is /usr/bin/kvm, not /usr/bin/qemu-kvm. >>> >>> Fedora also has no wrapper in the qemu-system-x86 package, and only >>> "qemu-kvm" installs one. In practice if you install the virtualization >>> package group you get it. What about Ubuntu? >> >> Well, I didn't have the qemu-kvm package installed until I >> pulled it in to check the wrapper name. >> >> My point is more that if there's no consensus between distros >> about what the wrapper script name should be then as upstream >> if we provide a qemu-kvm then we might be helping Fedora/RedHat >> but we're just increasing confusion for those distros that >> used a different name > > We could simply check whether argv[0] ends in "kvm" ... that should work > with both "kvm" and "qemu-kvm". We could also have two completely different binaries, one of which adds a file accel/kvm/default-accel.c: const char *default_accel = "kvm:tcg"; (likewise for hax and hvf). For everyone else stubs/default-accel.c provides: const char *default_accel = "tcg"; It shouldn't be hard to add it to Makefile.target. Then Debian can install our qemu-kvm binary as /usr/bin/kvm. Paolo