ae23c9
From 60e3b6eb1a611ddfb35841881689f0f6e02db3d1 Mon Sep 17 00:00:00 2001
ae23c9
From: Danilo de Paula <ddepaula@redhat.com>
ae23c9
Date: Mon, 20 May 2019 18:29:57 +0100
ae23c9
Subject: [PATCH 5/5] target/i386: define md-clear bit
ae23c9
ae23c9
RH-Author: Danilo de Paula <ddepaula@redhat.com>
ae23c9
Message-id: <20190520182957.26425-1-ddepaula@redhat.com>
ae23c9
Patchwork-id: 88110
ae23c9
O-Subject: [RHEL-8 + RHEL-AV qemu-kvm PATCH] target/i386: define md-clear bit
ae23c9
Bugzilla: 1703302 1703308
ae23c9
ae23c9
From: Paolo Bonzini <pbonzini@redhat.com>
ae23c9
ae23c9
BZ: 1703310
ae23c9
BZ: 1703304
ae23c9
BZ: 1703297
ae23c9
BZ: 1707274
ae23c9
branch: rhel-av-8.1.0/master-4.0.0
ae23c9
ae23c9
BZ: 1705851
ae23c9
BZ: 1704542
ae23c9
BZ: 1704538
ae23c9
BZ: 1704534
ae23c9
branch: rhel-av-8.0.1
ae23c9
ae23c9
BZ: 1703308
ae23c9
BZ: 1703302
ae23c9
branch: rhel-8.1.0
ae23c9
ae23c9
md-clear is a new CPUID bit which is set when microcode provides the
ae23c9
mechanism to invoke a flush of various exploitable CPU buffers by invoking
ae23c9
the VERW instruction.
ae23c9
ae23c9
Signed-off-by: Paolo Bonzini <pbonzini@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 77be7e8..e9025cd 100644
ae23c9
--- a/target/i386/cpu.c
ae23c9
+++ b/target/i386/cpu.c
ae23c9
@@ -1040,7 +1040,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
ae23c9
         .feat_names = {
ae23c9
             NULL, NULL, "avx512-4vnniw", "avx512-4fmaps",
ae23c9
             NULL, NULL, NULL, NULL,
ae23c9
-            NULL, NULL, NULL, NULL,
ae23c9
+            NULL, NULL, "md-clear", NULL,
ae23c9
             NULL, NULL, NULL, NULL,
ae23c9
             NULL, NULL, NULL, NULL,
ae23c9
             NULL, NULL, NULL, NULL,
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9