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