045c7c
From 8f9887acd04e8db0bebd0ad3fe1cf5d7294abdfd Mon Sep 17 00:00:00 2001
045c7c
From: Paolo Bonzini <pbonzini@redhat.com>
045c7c
Date: Sat,  2 Mar 2019 00:07:10 +0100
045c7c
Subject: target/i386: define md-clear bit
045c7c
045c7c
Message-id: <20190301230710.692-1-pbonzini@redhat.com>
045c7c
O-Subject: [qemu PATCH] target/i386: define md-clear bit
045c7c
045c7c
md-clear is a new CPUID bit which is set when microcode provides the
045c7c
mechanism to invoke a flush of various exploitable CPU buffers by invoking
045c7c
the VERW instruction.
045c7c
045c7c
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
045c7c
045c7c
---
045c7c
045c7c
  target/i386/cpu.c | 2 +-
045c7c
  1 file changed, 1 insertion(+), 1 deletion(-)
045c7c
045c7c
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
045c7c
index 4b3a238e8d..7247fdd179 100644
045c7c
--- a/target-i386/cpu.c
045c7c
+++ b/target-i386/cpu.c
045c7c
@@ -168,7 +168,7 @@ static const char *cpuid_7_0_ecx_feature_name[] = {
045c7c
 static const char *cpuid_7_0_edx_feature_name[] = {
045c7c
     NULL, NULL, "avx512-4vnniw", "avx512-4fmaps",
045c7c
     NULL, NULL, NULL, NULL,
045c7c
-    NULL, NULL, NULL, NULL,
045c7c
+    NULL, NULL, "md-clear", NULL,
045c7c
     NULL, NULL, NULL, NULL,
045c7c
     NULL, NULL, NULL, NULL,
045c7c
     NULL, NULL, NULL, NULL,
045c7c