Blame SOURCES/kvm-i386-remove-the-INTEL_PT-CPUID-bit-from-named-CPU-mo.patch

ae23c9
From cdca375a93add0cb9be100d7e8cdc39b59573666 Mon Sep 17 00:00:00 2001
ae23c9
From: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
Date: Thu, 9 May 2019 23:21:07 +0100
ae23c9
Subject: [PATCH 1/2] i386: remove the 'INTEL_PT' CPUID bit from named CPU
ae23c9
 models
ae23c9
ae23c9
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
Message-id: <20190509232108.25675-2-ehabkost@redhat.com>
ae23c9
Patchwork-id: 87253
ae23c9
O-Subject: [RHEL-8.1.0 qemu-kvm PATCH 1/2] i386: remove the 'INTEL_PT' CPUID bit from named CPU models
ae23c9
Bugzilla: 1561761
ae23c9
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
ae23c9
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
ae23c9
RH-Acked-by: Danilo de Paula <ddepaula@redhat.com>
ae23c9
ae23c9
From: Paolo Bonzini <pbonzini@redhat.com>
ae23c9
ae23c9
Processor tracing is not yet implemented for KVM and it will be an
ae23c9
opt in feature requiring a special module parameter.
ae23c9
Disable it, because it is wrong to enable it by default and
ae23c9
it is impossible that no one has ever used it.
ae23c9
ae23c9
Cc: qemu-stable@nongnu.org
ae23c9
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ae23c9
(cherry picked from commit 4c257911dcc7c4189768e9651755c849ce9db4e8)
ae23c9
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 target/i386/cpu.c | 5 ++---
ae23c9
 1 file changed, 2 insertions(+), 3 deletions(-)
ae23c9
ae23c9
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
ae23c9
index 8e63db6..c56d7e7 100644
ae23c9
--- a/target/i386/cpu.c
ae23c9
+++ b/target/i386/cpu.c
ae23c9
@@ -2515,7 +2515,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
ae23c9
             CPUID_7_0_EBX_HLE | CPUID_7_0_EBX_AVX2 | CPUID_7_0_EBX_SMEP |
ae23c9
             CPUID_7_0_EBX_BMI2 | CPUID_7_0_EBX_ERMS | CPUID_7_0_EBX_INVPCID |
ae23c9
             CPUID_7_0_EBX_RTM | CPUID_7_0_EBX_RDSEED | CPUID_7_0_EBX_ADX |
ae23c9
-            CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_MPX | CPUID_7_0_EBX_INTEL_PT,
ae23c9
+            CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_MPX,
ae23c9
         .features[FEAT_7_0_ECX] =
ae23c9
             CPUID_7_0_ECX_VBMI | CPUID_7_0_ECX_UMIP | CPUID_7_0_ECX_PKU |
ae23c9
             CPUID_7_0_ECX_OSPKE | CPUID_7_0_ECX_VBMI2 | CPUID_7_0_ECX_GFNI |
ae23c9
@@ -2573,8 +2573,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
ae23c9
             CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_MPX | CPUID_7_0_EBX_CLWB |
ae23c9
             CPUID_7_0_EBX_AVX512F | CPUID_7_0_EBX_AVX512DQ |
ae23c9
             CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
ae23c9
-            CPUID_7_0_EBX_AVX512VL | CPUID_7_0_EBX_CLFLUSHOPT |
ae23c9
-            CPUID_7_0_EBX_INTEL_PT,
ae23c9
+            CPUID_7_0_EBX_AVX512VL | CPUID_7_0_EBX_CLFLUSHOPT,
ae23c9
         .features[FEAT_7_0_ECX] =
ae23c9
             CPUID_7_0_ECX_VBMI | CPUID_7_0_ECX_UMIP | CPUID_7_0_ECX_PKU |
ae23c9
             CPUID_7_0_ECX_OSPKE | CPUID_7_0_ECX_VBMI2 | CPUID_7_0_ECX_GFNI |
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9