From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7nvZ-0007YR-1K for qemu-devel@nongnu.org; Fri, 09 Aug 2013 10:44:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7nvT-0003ny-N0 for qemu-devel@nongnu.org; Fri, 09 Aug 2013 10:44:28 -0400 Received: from mail-ee0-x236.google.com ([2a00:1450:4013:c00::236]:49063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7nvT-0003nj-GP for qemu-devel@nongnu.org; Fri, 09 Aug 2013 10:44:23 -0400 Received: by mail-ee0-f54.google.com with SMTP id e53so2172322eek.41 for ; Fri, 09 Aug 2013 07:44:22 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <52050025.4080409@redhat.com> Date: Fri, 09 Aug 2013 16:43:49 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1376057496-26967-1-git-send-email-ehabkost@redhat.com> In-Reply-To: <1376057496-26967-1-git-send-email-ehabkost@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-1.6] pc: compat: remove PCLMULQDQ from Westmere on pc-*-1.4 and older List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: "Edgar E. Iglesias" , Richard Henderson , qemu-devel@nongnu.org, Aurelien Jarno , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Il 09/08/2013 16:11, Eduardo Habkost ha scritto: > commit 41cb383f42d0cb51d8e3e25e3ecebc954dd4196f made a guest-visible > change by adding the PCLMULQDQ bit to Westmere without adding > compatibility code to keep the ABI older machine-types. This patch fixes > it by adding the missing compat code. > > Signed-off-by: Eduardo Habkost > --- > Bug detected by the virt-test CPUID-dump comparison test case, available at: > https://github.com/autotest/virt-test/pull/714 > --- > hw/i386/pc_piix.c | 1 + > hw/i386/pc_q35.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c > index ab25458..2817092 100644 > --- a/hw/i386/pc_piix.c > +++ b/hw/i386/pc_piix.c > @@ -259,6 +259,7 @@ static void pc_init_pci_1_4(QEMUMachineInitArgs *args) > { > has_pvpanic = false; > x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE); > + x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ); > pc_init_pci_1_5(args); > } > > diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c > index 2f35d12..25c6b33 100644 > --- a/hw/i386/pc_q35.c > +++ b/hw/i386/pc_q35.c > @@ -227,6 +227,7 @@ static void pc_q35_init_1_4(QEMUMachineInitArgs *args) > { > has_pvpanic = false; > x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE); > + x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ); > pc_q35_init_1_5(args); > } > > Adding 1.6 tag. Paolo