Received: from eggs.gnu.org ([2001:4830:134:3::10]:33333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtkTa-00081w-L0 for qemu-devel@nongnu.org; Tue, 03 Nov 2015 17:54:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtkTX-0004KF-FC for qemu-devel@nongnu.org; Tue, 03 Nov 2015 17:54:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtkTX-0004KB-9u for qemu-devel@nongnu.org; Tue, 03 Nov 2015 17:54:47 -0500 Date: Tue, 3 Nov 2015 20:54:43 -0200 From: Eduardo Habkost Message-ID: <20151103225443.GF4180@thinpad.lan.raisama.net> References: <1446580695-28525-1-git-send-email-ehabkost@redhat.com> <56391786.5000808@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56391786.5000808@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 0/3] target-i386: Don't trigger CPUID warnings by default in KVM mode (in most hosts) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Igor Mammedov , "Michael S. Tsirkin" , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Richard Henderson On Tue, Nov 03, 2015 at 09:22:30PM +0100, Paolo Bonzini wrote: > On 03/11/2015 20:58, Eduardo Habkost wrote: > > The x86 change to make "check" mode be enabled by default made QEMU print > > warnings in the default case if running in an Intel host: > > > > $ qemu-system-x86_64 -machine pc,accel=kvm > > warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6] > > > > There's also a warning when about missing the ABM feature if running on a Sandy > > Bridge or older host. > > > > ABM is not available on Sandy Bridge and older, SSE4a is not available in any > > Intel host. We want to make the default CPU runnable in most hosts, so those > > features won't be enabled by default in KVM mode. > > > > We should eventually have all features supported by TCG enabled by default in > > TCG mode, but as we don't have a good mechanism today to ensure we have > > different defaults in KVM and TCG mode, disable ABM and SSE4a in the qemu64 CPU > > model entirely. > > > > Also, as we can't change the guest ABI in pc-*-2.4, disable "check" mode by > > default in pc-*-2.4 and older so we don't print spurious warnings. > > > > Note that with this change, the qemu64 CPU model still requires a host > > supporting POPCNT (Nehalem or newer, and Opteron_G3 or newer). > > Do we want to remove that one as well? Probably, yes. libvirt even has these commented out in their cpu_map.xml: (libvirt must stop making assumptions about the CPU model feature sets so all elements in cpu_map.xml should go away. But at least the current cpu_map.xml is a good reference to what it expects today.) -- Eduardo