yeahuh / 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-NEW.patch

Pablo Greco e6a3ae
From 6131491c7a5494c1c034973ae23fc842b1ee733e Mon Sep 17 00:00:00 2001
Pablo Greco e6a3ae
From: "plai@redhat.com" <plai@redhat.com>
Pablo Greco e6a3ae
Date: Mon, 1 Jul 2019 16:17:33 +0100
Pablo Greco e6a3ae
Subject: [PATCH 04/39] i386: remove the 'INTEL_PT' CPUID bit from named CPU
Pablo Greco e6a3ae
 models
Pablo Greco e6a3ae
Pablo Greco e6a3ae
RH-Author: plai@redhat.com
Pablo Greco e6a3ae
Message-id: <1561997854-9646-5-git-send-email-plai@redhat.com>
Pablo Greco e6a3ae
Patchwork-id: 89332
Pablo Greco e6a3ae
O-Subject: [RHEL8.1 qemu-kvm PATCH v6 4/5] i386: remove the 'INTEL_PT' CPUID bit from named CPU models
Pablo Greco e6a3ae
Bugzilla: 1629906
Pablo Greco e6a3ae
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Pablo Greco e6a3ae
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Pablo Greco e6a3ae
RH-Acked-by: Bandan Das <bsd@redhat.com>
Pablo Greco e6a3ae
Pablo Greco e6a3ae
From: Paolo Bonzini <pbonzini@redhat.com>
Pablo Greco e6a3ae
Pablo Greco e6a3ae
Processor tracing is not yet implemented for KVM and it will be an
Pablo Greco e6a3ae
opt in feature requiring a special module parameter.
Pablo Greco e6a3ae
Disable it, because it is wrong to enable it by default and
Pablo Greco e6a3ae
it is impossible that no one has ever used it.
Pablo Greco e6a3ae
Pablo Greco e6a3ae
Cc: qemu-stable@nongnu.org
Pablo Greco e6a3ae
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Pablo Greco e6a3ae
(cherry picked from commit 4c257911dcc7c4189768e9651755c849ce9db4e8)
Pablo Greco e6a3ae
Signed-off-by: Paul Lai <plai@redhat.com>
Pablo Greco e6a3ae
Pablo Greco e6a3ae
Resolved Conflicts:
Pablo Greco e6a3ae
	target/i386/cpu.c
Pablo Greco e6a3ae
Pablo Greco e6a3ae
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
Pablo Greco e6a3ae
---
Pablo Greco e6a3ae
 target/i386/cpu.c | 3 +--
Pablo Greco e6a3ae
 1 file changed, 1 insertion(+), 2 deletions(-)
Pablo Greco e6a3ae
Pablo Greco e6a3ae
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
Pablo Greco e6a3ae
index 094f8a1..2538d82 100644
Pablo Greco e6a3ae
--- a/target/i386/cpu.c
Pablo Greco e6a3ae
+++ b/target/i386/cpu.c
Pablo Greco e6a3ae
@@ -2515,8 +2515,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
Pablo Greco e6a3ae
             CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_CLWB |
Pablo Greco e6a3ae
             CPUID_7_0_EBX_AVX512F | CPUID_7_0_EBX_AVX512DQ |
Pablo Greco e6a3ae
             CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
Pablo Greco e6a3ae
-            CPUID_7_0_EBX_AVX512VL | CPUID_7_0_EBX_CLFLUSHOPT |
Pablo Greco e6a3ae
-            CPUID_7_0_EBX_INTEL_PT,
Pablo Greco e6a3ae
+            CPUID_7_0_EBX_AVX512VL | CPUID_7_0_EBX_CLFLUSHOPT,
Pablo Greco e6a3ae
         .features[FEAT_7_0_ECX] =
Pablo Greco e6a3ae
             CPUID_7_0_ECX_PKU | CPUID_7_0_ECX_OSPKE |
Pablo Greco e6a3ae
             CPUID_7_0_ECX_AVX512VNNI,
Pablo Greco e6a3ae
-- 
Pablo Greco e6a3ae
1.8.3.1
Pablo Greco e6a3ae