|
|
4ec855 |
From defbb3b33db7fcbc9da20c1350ce90a6b5e279bb Mon Sep 17 00:00:00 2001
|
|
|
4ec855 |
From: "plai@redhat.com" <plai@redhat.com>
|
|
|
4ec855 |
Date: Mon, 1 Jul 2019 16:17:32 +0100
|
|
|
4ec855 |
Subject: [PATCH 03/39] target/i386: Disable MPX support on named CPU models
|
|
|
4ec855 |
MIME-Version: 1.0
|
|
|
4ec855 |
Content-Type: text/plain; charset=UTF-8
|
|
|
4ec855 |
Content-Transfer-Encoding: 8bit
|
|
|
4ec855 |
|
|
|
4ec855 |
RH-Author: plai@redhat.com
|
|
|
4ec855 |
Message-id: <1561997854-9646-4-git-send-email-plai@redhat.com>
|
|
|
4ec855 |
Patchwork-id: 89333
|
|
|
4ec855 |
O-Subject: [RHEL8.1 qemu-kvm PATCH v6 3/5] target/i386: Disable MPX support on named CPU models
|
|
|
4ec855 |
Bugzilla: 1629906
|
|
|
4ec855 |
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
4ec855 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
4ec855 |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
4ec855 |
|
|
|
4ec855 |
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
4ec855 |
|
|
|
4ec855 |
MPX support is being phased out by Intel; GCC has dropped it, Linux
|
|
|
4ec855 |
is also going to do that. Even though KVM will have special code
|
|
|
4ec855 |
to support MPX after the kernel proper stops enabling it in XCR0,
|
|
|
4ec855 |
we probably also want to deprecate that in a few years. As a start,
|
|
|
4ec855 |
do not enable it by default for any named CPU model starting with
|
|
|
4ec855 |
the 4.0 machine types; this include Skylake, Icelake and Cascadelake.
|
|
|
4ec855 |
|
|
|
4ec855 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
4ec855 |
Message-Id: <20181220121100.21554-1-pbonzini@redhat.com>
|
|
|
4ec855 |
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
|
|
|
4ec855 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
4ec855 |
(cherry picked from commit ecb85fe48cacb2f8740186e81f2f38a2e02bd963)
|
|
|
4ec855 |
Signed-off-by: Paul Lai <plai@redhat.com>
|
|
|
4ec855 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
4ec855 |
|
|
|
4ec855 |
Conflicts:
|
|
|
4ec855 |
hw/i386/pc.c changes to include/hw/i386/pc.h
|
|
|
4ec855 |
target/i386/cpu.c
|
|
|
4ec855 |
|
|
|
4ec855 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
4ec855 |
---
|
|
|
4ec855 |
target/i386/cpu.c | 2 +-
|
|
|
4ec855 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4ec855 |
|
|
|
4ec855 |
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
|
4ec855 |
index c4b31eb..094f8a1 100644
|
|
|
4ec855 |
--- a/target/i386/cpu.c
|
|
|
4ec855 |
+++ b/target/i386/cpu.c
|
|
|
4ec855 |
@@ -2512,7 +2512,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
|
|
|
4ec855 |
CPUID_7_0_EBX_HLE | CPUID_7_0_EBX_AVX2 | CPUID_7_0_EBX_SMEP |
|
|
|
4ec855 |
CPUID_7_0_EBX_BMI2 | CPUID_7_0_EBX_ERMS | CPUID_7_0_EBX_INVPCID |
|
|
|
4ec855 |
CPUID_7_0_EBX_RTM | CPUID_7_0_EBX_RDSEED | CPUID_7_0_EBX_ADX |
|
|
|
4ec855 |
- CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_MPX | CPUID_7_0_EBX_CLWB |
|
|
|
4ec855 |
+ CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_CLWB |
|
|
|
4ec855 |
CPUID_7_0_EBX_AVX512F | CPUID_7_0_EBX_AVX512DQ |
|
|
|
4ec855 |
CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
|
|
|
4ec855 |
CPUID_7_0_EBX_AVX512VL | CPUID_7_0_EBX_CLFLUSHOPT |
|
|
|
4ec855 |
--
|
|
|
4ec855 |
1.8.3.1
|
|
|
4ec855 |
|