|
|
7711c0 |
From 6e9de3f3fa020b351960f4f528f175aa802eb536 Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
7711c0 |
Date: Wed, 26 Sep 2018 18:50:59 +0200
|
|
|
7711c0 |
Subject: [PATCH] target-i386: cpu: Add downstream-only STIBP CPUID flag
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
7711c0 |
Message-id: <20180926185059.20691-1-ehabkost@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 82301
|
|
|
7711c0 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH] target-i386: cpu: Add downstream-only STIBP CPUID flag
|
|
|
7711c0 |
Bugzilla: 1638077
|
|
|
7711c0 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Kashyap Chamarthy <kchamart@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
We accidentally dropped the downstream-only STIBP CPUID flag
|
|
|
7711c0 |
during the 2.12.0 rebase.
|
|
|
7711c0 |
|
|
|
7711c0 |
STIBP is a CPUID flag that was considered for the Spectre
|
|
|
7711c0 |
(CVE-2017-5715) mitigations, but in the end it was not necessary:
|
|
|
7711c0 |
spec-ctrl/IBRS was deemed enough. The kernel KVM STIBP CPUID
|
|
|
7711c0 |
code was never merged upstream, but it's present on RHEL-7.
|
|
|
7711c0 |
|
|
|
7711c0 |
This means we may have existing VMs created on RHEL-7.5 hosts
|
|
|
7711c0 |
with the STIBP flag enabled, and we need to support
|
|
|
7711c0 |
live-migration of those VMs to RHEL-7.6.
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
target/i386/cpu.c | 2 +-
|
|
|
7711c0 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
|
7711c0 |
index 6b5acdf..91f5a97 100644
|
|
|
7711c0 |
--- a/target/i386/cpu.c
|
|
|
7711c0 |
+++ b/target/i386/cpu.c
|
|
|
7711c0 |
@@ -1007,7 +1007,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
|
|
|
7711c0 |
NULL, NULL, NULL, NULL,
|
|
|
7711c0 |
NULL, NULL, NULL, NULL,
|
|
|
7711c0 |
NULL, NULL, NULL, NULL,
|
|
|
7711c0 |
- NULL, NULL, "spec-ctrl", NULL,
|
|
|
7711c0 |
+ NULL, NULL, "spec-ctrl", "stibp",
|
|
|
7711c0 |
NULL, NULL, NULL, "ssbd",
|
|
|
7711c0 |
},
|
|
|
7711c0 |
.cpuid_eax = 7,
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|