[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] i386: Change stepping of Haswell to non-blackli
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 5/5] i386: Change stepping of Haswell to non-blacklisted value |
Date: |
Sun, 8 Jan 2017 17:40:41 -0200 |
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 <address@hidden>
---
include/hw/i386/pc.h | 6 +++++-
target/i386/cpu.c | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 230e9e70c5..fcd9b4f541 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -376,7 +376,11 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
#define PC_COMPAT_2_8 \
HW_COMPAT_2_8 \
-
+ {\
+ .driver = "Haswell-" TYPE_X86_CPU,\
+ .property = "stepping",\
+ .value = "1",\
+ },
#define PC_COMPAT_2_7 \
HW_COMPAT_2_7 \
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 9dbb2d98da..003de7e74f 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1190,7 +1190,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 |
--
2.11.0.259.g40922b1
- [Qemu-devel] [PATCH 0/5] Use non-blacklisted family/model/stepping for Haswell CPU model, Eduardo Habkost, 2017/01/08
- [Qemu-devel] [PATCH 2/5] i386: host_vendor_fms() helper function, Eduardo Habkost, 2017/01/08
- [Qemu-devel] [PATCH 1/5] i386: Add explicit array size to x86_cpu_vendor_words2str(), Eduardo Habkost, 2017/01/08
- [Qemu-devel] [PATCH 3/5] i386/kvm: Blacklist TSX on known broken hosts, Eduardo Habkost, 2017/01/08
- [Qemu-devel] [PATCH 5/5] i386: Change stepping of Haswell to non-blacklisted value,
Eduardo Habkost <=
- [Qemu-devel] [PATCH 4/5] pc: Add 2.9 machine-types, Eduardo Habkost, 2017/01/08
- Re: [Qemu-devel] [PATCH 0/5] Use non-blacklisted family/model/stepping for Haswell CPU model, no-reply, 2017/01/08
- Re: [Qemu-devel] [PATCH 0/5] Use non-blacklisted family/model/stepping for Haswell CPU model, Dr. David Alan Gilbert, 2017/01/09