yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
b38b0f
From 9785cad163ad4557e218ea40ed146bf02b02cb98 Mon Sep 17 00:00:00 2001
b38b0f
From: "plai@redhat.com" <plai@redhat.com>
b38b0f
Date: Wed, 3 Apr 2019 15:54:27 +0100
b38b0f
Subject: [PATCH 03/10] i386: Add CPUID bit for PCONFIG
b38b0f
b38b0f
RH-Author: plai@redhat.com
b38b0f
Message-id: <1554306874-28796-4-git-send-email-plai@redhat.com>
b38b0f
Patchwork-id: 85381
b38b0f
O-Subject: [RHEL8.1 qemu-kvm PATCH resend 03/10] i386: Add CPUID bit for PCONFIG
b38b0f
Bugzilla: 1561761
b38b0f
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
b38b0f
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
b38b0f
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
b38b0f
b38b0f
From: Robert Hoo <robert.hu@linux.intel.com>
b38b0f
b38b0f
PCONFIG: Platform configuration, enumerated by CPUID.(EAX=07H, ECX=0):
b38b0f
EDX[bit18].
b38b0f
b38b0f
Signed-off-by: Robert Hoo <robert.hu@linux.intel.com>
b38b0f
Message-Id: <1530781798-183214-4-git-send-email-robert.hu@linux.intel.com>
b38b0f
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
b38b0f
(cherry picked from commit 5131dc433df54b37e8e918d8fba7fe10344e7a7b)
b38b0f
Signed-off-by: Paul Lai <plai@redhat.com>
b38b0f
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
b38b0f
---
b38b0f
 target/i386/cpu.c | 2 +-
b38b0f
 target/i386/cpu.h | 1 +
b38b0f
 2 files changed, 2 insertions(+), 1 deletion(-)
b38b0f
b38b0f
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
b38b0f
index 6d38ac0..fec39bd 100644
b38b0f
--- a/target/i386/cpu.c
b38b0f
+++ b/target/i386/cpu.c
b38b0f
@@ -1005,7 +1005,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
b38b0f
             NULL, NULL, NULL, NULL,
b38b0f
             NULL, NULL, NULL, NULL,
b38b0f
             NULL, NULL, NULL, NULL,
b38b0f
-            NULL, NULL, NULL, NULL,
b38b0f
+            NULL, NULL, "pconfig", NULL,
b38b0f
             NULL, NULL, NULL, NULL,
b38b0f
             NULL, NULL, "spec-ctrl", "stibp",
b38b0f
             NULL, "arch-capabilities", NULL, "ssbd",
b38b0f
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
b38b0f
index e5e5169..3b2ea97 100644
b38b0f
--- a/target/i386/cpu.h
b38b0f
+++ b/target/i386/cpu.h
b38b0f
@@ -686,6 +686,7 @@ typedef uint32_t FeatureWordArray[FEATURE_WORDS];
b38b0f
 
b38b0f
 #define CPUID_7_0_EDX_AVX512_4VNNIW (1U << 2) /* AVX512 Neural Network Instructions */
b38b0f
 #define CPUID_7_0_EDX_AVX512_4FMAPS (1U << 3) /* AVX512 Multiply Accumulation Single Precision */
b38b0f
+#define CPUID_7_0_EDX_PCONFIG (1U << 18)       /* Platform Configuration */
b38b0f
 #define CPUID_7_0_EDX_SPEC_CTRL     (1U << 26) /* Speculation Control */
b38b0f
 #define CPUID_7_0_EDX_ARCH_CAPABILITIES (1U << 29)  /*Arch Capabilities*/
b38b0f
 #define CPUID_7_0_EDX_SPEC_CTRL_SSBD  (1U << 31) /* Speculative Store Bypass Disable */
b38b0f
-- 
b38b0f
1.8.3.1
b38b0f