|
|
ddf19c |
From 00f916987589f114f42ce20b138c00c47b9e4df7 Mon Sep 17 00:00:00 2001
|
|
|
ddf19c |
From: "plai@redhat.com" <plai@redhat.com>
|
|
|
ddf19c |
Date: Fri, 15 May 2020 18:02:41 +0100
|
|
|
ddf19c |
Subject: [PATCH 14/17] i386: Add macro for stibp
|
|
|
ddf19c |
|
|
|
ddf19c |
RH-Author: plai@redhat.com
|
|
|
ddf19c |
Message-id: <20200515180243.17488-3-plai@redhat.com>
|
|
|
ddf19c |
Patchwork-id: 96610
|
|
|
ddf19c |
O-Subject: [RHEL8.2.1 AV qemu-kvm PATCH 2/4] i386: Add macro for stibp
|
|
|
ddf19c |
Bugzilla: 1769912
|
|
|
ddf19c |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
From: Cathy Zhang <cathy.zhang@intel.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
stibp feature is already added through the following commit.
|
|
|
ddf19c |
https://github.com/qemu/qemu/commit/0e8916582991b9fd0b94850a8444b8b80d0a0955
|
|
|
ddf19c |
|
|
|
ddf19c |
Add a macro for it to allow CPU models to report it when host supports.
|
|
|
ddf19c |
|
|
|
ddf19c |
Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
|
|
|
ddf19c |
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
|
|
|
ddf19c |
Reviewed-by: Tao Xu <tao3.xu@intel.com>
|
|
|
ddf19c |
Message-Id: <1571729728-23284-3-git-send-email-cathy.zhang@intel.com>
|
|
|
ddf19c |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ddf19c |
(cherry picked from commit 5af514d0cb314f43bc53f2aefb437f6451d64d0c)
|
|
|
ddf19c |
Signed-off-by: Paul Lai <plai@redhat.com>
|
|
|
ddf19c |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
ddf19c |
---
|
|
|
ddf19c |
target/i386/cpu.h | 2 ++
|
|
|
ddf19c |
1 file changed, 2 insertions(+)
|
|
|
ddf19c |
|
|
|
ddf19c |
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
|
|
|
ddf19c |
index 60304cc..e77d101 100644
|
|
|
ddf19c |
--- a/target/i386/cpu.h
|
|
|
ddf19c |
+++ b/target/i386/cpu.h
|
|
|
ddf19c |
@@ -772,6 +772,8 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS];
|
|
|
ddf19c |
#define CPUID_7_0_EDX_AVX512_4FMAPS (1U << 3)
|
|
|
ddf19c |
/* Speculation Control */
|
|
|
ddf19c |
#define CPUID_7_0_EDX_SPEC_CTRL (1U << 26)
|
|
|
ddf19c |
+/* Single Thread Indirect Branch Predictors */
|
|
|
ddf19c |
+#define CPUID_7_0_EDX_STIBP (1U << 27)
|
|
|
ddf19c |
/* Arch Capabilities */
|
|
|
ddf19c |
#define CPUID_7_0_EDX_ARCH_CAPABILITIES (1U << 29)
|
|
|
ddf19c |
/* Core Capability */
|
|
|
ddf19c |
--
|
|
|
ddf19c |
1.8.3.1
|
|
|
ddf19c |
|