Received: from eggs.gnu.org ([2001:4830:134:3::10]:36117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaUZE-0008OI-Vd for qemu-devel@nongnu.org; Fri, 11 Sep 2015 16:05:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaUZ9-00005G-Tl for qemu-devel@nongnu.org; Fri, 11 Sep 2015 16:05:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaUZ9-00004x-PA for qemu-devel@nongnu.org; Fri, 11 Sep 2015 16:04:59 -0400 Date: Fri, 11 Sep 2015 16:58:59 -0300 From: Eduardo Habkost Message-ID: <20150911195859.GN3574@thinpad.lan.raisama.net> References: <1441999509-26881-1-git-send-email-ehabkost@redhat.com> <55F32C53.8050606@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55F32C53.8050606@twiddle.net> Subject: Re: [Qemu-devel] [PATCH 0/4] target-i386: Don't try to enable unsupported TCG features by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Igor Mammedov , Paolo Bonzini , qemu-devel@nongnu.org, Andreas =?iso-8859-1?Q?F=E4rber?= On Fri, Sep 11, 2015 at 12:32:35PM -0700, Richard Henderson wrote: > On 09/11/2015 12:25 PM, Eduardo Habkost wrote: > > This series makes QEMU stop trying to enable an unsupported feature by default > > in TCG mode, avoiding the warnings shown by the (now enabled by default) > > "check" mode. > > > > To do that, I cchanged the kvm_default_features code to be based on QOM > > properties, and added a new "type" field to allow per-CPU-model KVM defaults to > > be specified. > > > > Before this series: > > > > $ qemu-system-x86_64 -S > > warning: TCG doesn't support requested feature: CPUID.01H:EDX.de [bit 2] > > warning: TCG doesn't support requested feature: CPUID.80000001H:EDX [bit 2] > > > > After this series: > > > > $ ./x86_64-softmmu/qemu-system-x86_64 -S > > [no warning output] > > Wouldn't it be easier simply to implement this bit? > It seems like we're simply creating a compatibility mess otherwise. I don't think the compatibility mess is worse than the one we already have with x2apic. I even think the new type/property/value system is cleaner than the existing kvm_default_*features arrays. About implementing DE in TCG: I really don't think it is easier, but if somebody wants to implement it, it would be welcome. -- Eduardo