cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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