Received: from eggs.gnu.org ([2001:4830:134:3::10]:34027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Sfk-0003mM-Sz for qemu-devel@nongnu.org; Tue, 23 Jun 2015 14:11:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Sfg-0008Jk-Sp for qemu-devel@nongnu.org; Tue, 23 Jun 2015 14:11:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Sfg-0008JW-OH for qemu-devel@nongnu.org; Tue, 23 Jun 2015 14:11:44 -0400 Date: Tue, 23 Jun 2015 15:11:32 -0300 From: Eduardo Habkost Message-ID: <20150623181132.GN3134@thinpad.lan.raisama.net> References: <20150623162555.GL30318@redhat.com> <20150623183115-mutt-send-email-mst@redhat.com> <20150623163858.GG3134@thinpad.lan.raisama.net> <55898D09.2060405@suse.de> <20150623170859.GH3134@thinpad.lan.raisama.net> <558994CE.9050001@suse.de> <20150623172750.GP30318@redhat.com> <55899A5E.3060509@suse.de> <20150623174520.GM3134@thinpad.lan.raisama.net> <55899E54.3040403@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <55899E54.3040403@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/2] target-i386: "custom" CPU model + script to dump existing CPU models List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: mimu@linux.vnet.ibm.com, "Michael S. Tsirkin" , qemu-devel@nongnu.org, Alexander Graf , borntraeger@de.ibm.com, Igor Mammedov , Paolo Bonzini , Jiri Denemark , rth@twiddle.net On Tue, Jun 23, 2015 at 07:58:44PM +0200, Andreas F=E4rber wrote: > Am 23.06.2015 um 19:45 schrieb Eduardo Habkost: > > On Tue, Jun 23, 2015 at 07:41:50PM +0200, Andreas F=E4rber wrote: > > [...] > >> If that is the whole problem here, then why not just add a global fl= ag > >> to only enable explicitly requested KVM features? All other features > >> should not depend on the host, and the whole discussion about -x.y s= eems > >> like a distraction. > >=20 > > Now replace "KVM features" with "CPU fatures", because all CPU featur= es > > are KVM features, as all of them depend on KVM code enabling them on > > GET_SUPPORTED_CPUID. > >=20 > > Thus, the global flag to only enable explicitly request KVM features = on > > CPUs is "-cpu custom", which doesn't enable any CPU feature at all. >=20 > If libvirt wants to use an empty CPU model, then why export our models > to libvirt? We wouldn't need it anymore. We would probably keep it just because old libvirt versions (or maybe the non-x86 libvirt code) may use it, or maybe libvirt will keep using the existing QEMU models for existing VMs (because that would be simpler than converting existing "-cpu Foo" to "-cpu custom -readconfig"). >=20 > I don't mind there being an optional custom model, I mind our > compat_props getting ignored that way, which are unrelated to adding ne= w > features, in fact they suppress just that for the -2.3 examples. I am also not happy for having spent lots of time on compat_props for CPUs when it is not going to be needed by libvirt anymore, but that's a sunk cost. --=20 Eduardo