|
|
ae23c9 |
From 0d13ff22c572978cbef5e0b9ad81143178315bf6 Mon Sep 17 00:00:00 2001
|
|
|
ae23c9 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
Date: Mon, 10 Dec 2018 19:25:34 +0000
|
|
|
ae23c9 |
Subject: [PATCH 06/13] i386: Add "stibp" flag name
|
|
|
ae23c9 |
|
|
|
ae23c9 |
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
Message-id: <20181210192534.21567-2-ehabkost@redhat.com>
|
|
|
ae23c9 |
Patchwork-id: 83359
|
|
|
ae23c9 |
O-Subject: [RHEL8/rhel qemu-kvm PATCH 1/1] i386: Add "stibp" flag name
|
|
|
ae23c9 |
Bugzilla: 1639446
|
|
|
ae23c9 |
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
The STIBP flag may be supported by the host KVM module, so QEMU
|
|
|
ae23c9 |
can allow it to be configured manually, and it can be exposed to
|
|
|
ae23c9 |
guests when using "-cpu host".
|
|
|
ae23c9 |
|
|
|
ae23c9 |
No additional migration code is required because the whole
|
|
|
ae23c9 |
contents of spec_ctrl is already migrated in the "cpu/spec_ctrl"
|
|
|
ae23c9 |
section.
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Corresponding KVM patch was submitted at:
|
|
|
ae23c9 |
https://lore.kernel.org/lkml/20181205191956.31480-1-ehabkost@redhat.com/
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
Message-Id: <20181210180250.31299-1-ehabkost@redhat.com>
|
|
|
ae23c9 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
ae23c9 |
(cherry picked from commit 218f1ef8f700b9a25cad3299cb0728d71b7634dd)
|
|
|
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 | 2 +-
|
|
|
ae23c9 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
|
ae23c9 |
index 228935f..a44912c 100644
|
|
|
ae23c9 |
--- a/target/i386/cpu.c
|
|
|
ae23c9 |
+++ b/target/i386/cpu.c
|
|
|
ae23c9 |
@@ -1007,7 +1007,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
|
|
|
ae23c9 |
NULL, NULL, NULL, NULL,
|
|
|
ae23c9 |
NULL, NULL, NULL, NULL,
|
|
|
ae23c9 |
NULL, NULL, NULL, NULL,
|
|
|
ae23c9 |
- NULL, NULL, "spec-ctrl", NULL,
|
|
|
ae23c9 |
+ NULL, NULL, "spec-ctrl", "stibp",
|
|
|
ae23c9 |
NULL, NULL, NULL, "ssbd",
|
|
|
ae23c9 |
},
|
|
|
ae23c9 |
.cpuid_eax = 7,
|
|
|
ae23c9 |
--
|
|
|
ae23c9 |
1.8.3.1
|
|
|
ae23c9 |
|