yeahuh / rpms / qemu-kvm

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