|
|
ae23c9 |
From a10f2cff4a418edae4f3040c4bf09e5aad80316a Mon Sep 17 00:00:00 2001
|
|
|
ae23c9 |
From: "plai@redhat.com" <plai@redhat.com>
|
|
|
ae23c9 |
Date: Mon, 20 May 2019 20:05:56 +0100
|
|
|
ae23c9 |
Subject: [PATCH 1/5] x86/cpu: Enable CLDEMOTE(Demote Cache Line) cpu feature
|
|
|
ae23c9 |
|
|
|
ae23c9 |
RH-Author: plai@redhat.com
|
|
|
ae23c9 |
Message-id: <1554409731-21082-1-git-send-email-plai@redhat.com>
|
|
|
ae23c9 |
Patchwork-id: 85447
|
|
|
ae23c9 |
O-Subject: [RHEL8.1 qemu-kvm PATCH] x86/cpu: Enable CLDEMOTE(Demote Cache Line) cpu feature
|
|
|
ae23c9 |
Bugzilla: 1696436
|
|
|
ae23c9 |
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
From: Jingqi Liu <jingqi.liu@intel.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1696436
|
|
|
ae23c9 |
Brew: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=20946375
|
|
|
ae23c9 |
Branch: rhel-8.1.0
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Tested by Intel QA on SNR (simics)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
ae23c9 |
---
|
|
|
ae23c9 |
target/i386/cpu.c | 2 +-
|
|
|
ae23c9 |
target/i386/cpu.h | 1 +
|
|
|
ae23c9 |
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
|
ae23c9 |
index 8ff6c38..77be7e8 100644
|
|
|
ae23c9 |
--- a/target/i386/cpu.c
|
|
|
ae23c9 |
+++ b/target/i386/cpu.c
|
|
|
ae23c9 |
@@ -1025,7 +1025,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
|
|
|
ae23c9 |
"avx512bitalg", NULL, "avx512-vpopcntdq", NULL,
|
|
|
ae23c9 |
"la57", NULL, NULL, NULL,
|
|
|
ae23c9 |
NULL, NULL, "rdpid", NULL,
|
|
|
ae23c9 |
- NULL, NULL, NULL, NULL,
|
|
|
ae23c9 |
+ NULL, "cldemote", NULL, NULL,
|
|
|
ae23c9 |
NULL, NULL, NULL, NULL,
|
|
|
ae23c9 |
},
|
|
|
ae23c9 |
.cpuid = {
|
|
|
ae23c9 |
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
|
|
|
ae23c9 |
index 3ae0e8c..4f9df6e 100644
|
|
|
ae23c9 |
--- a/target/i386/cpu.h
|
|
|
ae23c9 |
+++ b/target/i386/cpu.h
|
|
|
ae23c9 |
@@ -684,6 +684,7 @@ typedef uint32_t FeatureWordArray[FEATURE_WORDS];
|
|
|
ae23c9 |
#define CPUID_7_0_ECX_AVX512_VPOPCNTDQ (1U << 14) /* POPCNT for vectors of DW/QW */
|
|
|
ae23c9 |
#define CPUID_7_0_ECX_LA57 (1U << 16)
|
|
|
ae23c9 |
#define CPUID_7_0_ECX_RDPID (1U << 22)
|
|
|
ae23c9 |
+#define CPUID_7_0_ECX_CLDEMOTE (1U << 25) /* CLDEMOTE Instruction */
|
|
|
ae23c9 |
|
|
|
ae23c9 |
#define CPUID_7_0_EDX_AVX512_4VNNIW (1U << 2) /* AVX512 Neural Network Instructions */
|
|
|
ae23c9 |
#define CPUID_7_0_EDX_AVX512_4FMAPS (1U << 3) /* AVX512 Multiply Accumulation Single Precision */
|
|
|
ae23c9 |
--
|
|
|
ae23c9 |
1.8.3.1
|
|
|
ae23c9 |
|