]> git.proxmox.com Git - mirror_qemu.git/commitdiff
i386: Change stepping of Haswell to non-blacklisted value
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 9 Mar 2017 18:12:12 +0000 (15:12 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 10 Mar 2017 18:01:09 +0000 (15:01 -0300)
glibc blacklists TSX on Haswell CPUs with model==60 and
stepping < 4. To make the Haswell CPU model more useful, make
those guests actually use TSX by changing CPU stepping to 4.

References:
* glibc commit 2702856bf45c82cf8e69f2064f5aa15c0ceb6359
  https://sourceware.org/git/?p=glibc.git;a=commit;h=2702856bf45c82cf8e69f2064f5aa15c0ceb6359

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170309181212.18864-4-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/hw/i386/pc.h
target/i386/cpu.c

index ab303c7fee8a1493dfc7a3f3f2bc8bfa641b9859..f278b3ae89a420bc214a5dbb4fa16150cfb83858 100644 (file)
@@ -389,6 +389,11 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
         .driver   = TYPE_X86_CPU,\
         .property = "vmware-cpuid-freq",\
         .value    = "off",\
+    },\
+    {\
+        .driver   = "Haswell-" TYPE_X86_CPU,\
+        .property = "stepping",\
+        .value    = "1",\
     },
 
 #define PC_COMPAT_2_7 \
index 30ba1bd06b64625f7a4d3762b5412cbe26251219..7aa762245a54ce83f363d98728b7f8125f3d6232 100644 (file)
@@ -1196,7 +1196,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
         .vendor = CPUID_VENDOR_INTEL,
         .family = 6,
         .model = 60,
-        .stepping = 1,
+        .stepping = 4,
         .features[FEAT_1_EDX] =
             CPUID_VME | CPUID_SSE2 | CPUID_SSE | CPUID_FXSR | CPUID_MMX |
             CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV | CPUID_MCA |