cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
e15247
From 89c4aa9839e314a3ed45b377c8fb9a3b3fd78147 Mon Sep 17 00:00:00 2001
e15247
From: Eduardo Habkost <ehabkost@redhat.com>
e15247
Date: Tue, 3 Dec 2019 22:51:40 +0000
e15247
Subject: [PATCH 1/2] target/i386: Export TAA_NO bit to guests
e15247
e15247
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
e15247
Message-id: <20191203225141.501191-2-ehabkost@redhat.com>
e15247
Patchwork-id: 92842
e15247
O-Subject: [RHEL-8.1.0 qemu-kvm PATCH 1/2] target/i386: Export TAA_NO bit to guests
e15247
Bugzilla: 1771970
e15247
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
e15247
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
e15247
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
e15247
e15247
From: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
e15247
e15247
TSX Async Abort (TAA) is a side channel attack on internal buffers in
e15247
some Intel processors similar to Microachitectural Data Sampling (MDS).
e15247
e15247
Some future Intel processors will use the ARCH_CAP_TAA_NO bit in the
e15247
IA32_ARCH_CAPABILITIES MSR to report that they are not vulnerable to
e15247
TAA. Make this bit available to guests.
e15247
e15247
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
e15247
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
e15247
(cherry picked from commit 7fac38635e1cc5ebae34eb6530da1009bd5808e4)
e15247
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
e15247
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
e15247
---
e15247
 target/i386/cpu.c | 2 +-
e15247
 1 file changed, 1 insertion(+), 1 deletion(-)
e15247
e15247
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
e15247
index c8f50a7..7baa5d2 100644
e15247
--- a/target/i386/cpu.c
e15247
+++ b/target/i386/cpu.c
e15247
@@ -1148,7 +1148,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
e15247
         .feat_names = {
e15247
             "rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry",
e15247
             "ssb-no", "mds-no", NULL, NULL,
e15247
-            NULL, NULL, NULL, NULL,
e15247
+            "taa-no", NULL, NULL, NULL,
e15247
             NULL, NULL, NULL, NULL,
e15247
             NULL, NULL, NULL, NULL,
e15247
             NULL, NULL, NULL, NULL,
e15247
-- 
e15247
1.8.3.1
e15247