cryptospore / rpms / qemu-kvm

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