Received: from eggs.gnu.org ([2001:4830:134:3::10]:59096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5YB-00021h-LD for qemu-devel@nongnu.org; Mon, 03 Oct 2016 11:53:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br5Y7-0006fG-FT for qemu-devel@nongnu.org; Mon, 03 Oct 2016 11:53:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br5Y7-0006f0-95 for qemu-devel@nongnu.org; Mon, 03 Oct 2016 11:53:03 -0400 Date: Mon, 3 Oct 2016 12:52:58 -0300 From: Eduardo Habkost Message-ID: <20161003155258.GC3877@thinpad.lan.raisama.net> References: <1475495402-5321-1-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475495402-5321-1-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH v2 1/1] target-i386: Correct family/model/stepping for Opteron_G3 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: qemu-devel@nongnu.org, Evgeny Yakovlev , Paolo Bonzini , Richard Henderson On Mon, Oct 03, 2016 at 02:50:02PM +0300, Denis V. Lunev wrote: > From: Evgeny Yakovlev > > Current CPU definition for AMD Opteron third generation includes > features like SSE4a and LAHF_LM support in emulated CPUID. These > features are present in K8 rev.E or K10 CPUs and later. However, > current G3 family and model describe 2nd generation K8 cores instead. > > This is incorrect but was considered harmless until our tests found a > problem with linux kernels >= 3.10 (and maybe earlier) which specifically > check for Opteron K8 model when parsing CPUID leaf 0x80000001: > http://lxr.free-electrons.com/source/arch/x86/kernel/cpu/amd.c?v=3.16#L552 > This code will disable LAHF_LM feature in /proc/cpuinfo if model number > is inconsistent. > > This change sets Opteron_G3 family/model/stepping to 16/2/3 which is > a proper Opteron 3rd generation 2350 CPU. > > Signed-off-by: Evgeny Yakovlev > Signed-off-by: Denis V. Lunev > CC: Paolo Bonzini > CC: Richard Henderson > CC: Eduardo Habkost Applied to x86-next. Thanks. -- Eduardo