yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-i386-remove-the-new-CPUID-PCONFIG-from-Icelake-Serve.patch

b38b0f
From 925184b9c7bd2946cff1698b1cf4a448435588e5 Mon Sep 17 00:00:00 2001
b38b0f
From: "plai@redhat.com" <plai@redhat.com>
b38b0f
Date: Wed, 3 Apr 2019 15:54:33 +0100
b38b0f
Subject: [PATCH 09/10] i386: remove the new CPUID 'PCONFIG' from
b38b0f
 Icelake-Server CPU model
b38b0f
b38b0f
RH-Author: plai@redhat.com
b38b0f
Message-id: <1554306874-28796-10-git-send-email-plai@redhat.com>
b38b0f
Patchwork-id: 85387
b38b0f
O-Subject: [RHEL8.1 qemu-kvm PATCH resend 09/10] i386: remove the new CPUID 'PCONFIG' from Icelake-Server CPU model
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 is not available to guests; it must be specifically enabled
b38b0f
using the PCONFIG_ENABLE execution control.  Disable it, because
b38b0f
no one can ever use it.
b38b0f
b38b0f
Signed-off-by: Robert Hoo <robert.hu@linux.intel.com>
b38b0f
Message-Id: <1545227081-213696-2-git-send-email-robert.hu@linux.intel.com>
b38b0f
Cc: qemu-stable@nongnu.org
b38b0f
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
b38b0f
(cherry picked from commit 76e5a4d58357b9d077afccf7f7c82e17f733b722)
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 | 3 +--
b38b0f
 1 file changed, 1 insertion(+), 2 deletions(-)
b38b0f
b38b0f
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
b38b0f
index 8750f64..ad369be 100644
b38b0f
--- a/target/i386/cpu.c
b38b0f
+++ b/target/i386/cpu.c
b38b0f
@@ -2582,8 +2582,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
b38b0f
             CPUID_7_0_ECX_AVX512VNNI | CPUID_7_0_ECX_AVX512BITALG |
b38b0f
             CPUID_7_0_ECX_AVX512_VPOPCNTDQ | CPUID_7_0_ECX_LA57,
b38b0f
         .features[FEAT_7_0_EDX] =
b38b0f
-            CPUID_7_0_EDX_PCONFIG | CPUID_7_0_EDX_SPEC_CTRL |
b38b0f
-            CPUID_7_0_EDX_SPEC_CTRL_SSBD,
b38b0f
+            CPUID_7_0_EDX_SPEC_CTRL | CPUID_7_0_EDX_SPEC_CTRL_SSBD,
b38b0f
         /* Missing: XSAVES (not supported by some Linux versions,
b38b0f
                 * including v4.1 to v4.12).
b38b0f
                 * KVM doesn't yet expose any XSAVES state save component,
b38b0f
-- 
b38b0f
1.8.3.1
b38b0f