yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
73f313
From 2ce01dcb0add24ad6ba0a703b63d00fb9d95ee5f Mon Sep 17 00:00:00 2001
73f313
From: Eduardo Habkost <ehabkost@redhat.com>
73f313
Date: Wed, 4 Dec 2019 01:48:28 +0100
73f313
Subject: [PATCH 1/2] target/i386: Export TAA_NO bit to guests
73f313
73f313
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
73f313
Message-id: <20191204014829.608318-2-ehabkost@redhat.com>
73f313
Patchwork-id: 92853
73f313
O-Subject: [RHEL-7.8 qemu-kvm PATCH 1/2] target/i386: Export TAA_NO bit to guests
73f313
Bugzilla: 1771961
73f313
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
73f313
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
73f313
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
73f313
73f313
From: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
73f313
73f313
TSX Async Abort (TAA) is a side channel attack on internal buffers in
73f313
some Intel processors similar to Microachitectural Data Sampling (MDS).
73f313
73f313
Some future Intel processors will use the ARCH_CAP_TAA_NO bit in the
73f313
IA32_ARCH_CAPABILITIES MSR to report that they are not vulnerable to
73f313
TAA. Make this bit available to guests.
73f313
73f313
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
73f313
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
73f313
(cherry picked from commit 7fac38635e1cc5ebae34eb6530da1009bd5808e4)
73f313
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
73f313
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
73f313
---
73f313
 target-i386/cpu.c | 2 +-
73f313
 1 file changed, 1 insertion(+), 1 deletion(-)
73f313
73f313
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
73f313
index 9283902..120df73 100644
73f313
--- a/target-i386/cpu.c
73f313
+++ b/target-i386/cpu.c
73f313
@@ -212,7 +212,7 @@ static const char *cpuid_apm_edx_feature_name[] = {
73f313
 static const char *cpuid_arch_capabilities_feature_name[] = {
73f313
     "rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry",
73f313
     "ssb-no", "mds-no", NULL, NULL,
73f313
-    NULL, NULL, NULL, NULL,
73f313
+    "taa-no", NULL, NULL, NULL,
73f313
     NULL, NULL, NULL, NULL,
73f313
     NULL, NULL, NULL, NULL,
73f313
     NULL, NULL, NULL, NULL,
73f313
-- 
73f313
1.8.3.1
73f313