yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
Blob Blame History Raw
From 8f9887acd04e8db0bebd0ad3fe1cf5d7294abdfd Mon Sep 17 00:00:00 2001
From: Paolo Bonzini <pbonzini@redhat.com>
Date: Sat,  2 Mar 2019 00:07:10 +0100
Subject: target/i386: define md-clear bit

Message-id: <20190301230710.692-1-pbonzini@redhat.com>
O-Subject: [qemu PATCH] target/i386: define md-clear bit

md-clear is a new CPUID bit which is set when microcode provides the
mechanism to invoke a flush of various exploitable CPU buffers by invoking
the VERW instruction.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

---

  target/i386/cpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 4b3a238e8d..7247fdd179 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -168,7 +168,7 @@ static const char *cpuid_7_0_ecx_feature_name[] = {
 static const char *cpuid_7_0_edx_feature_name[] = {
     NULL, NULL, "avx512-4vnniw", "avx512-4fmaps",
     NULL, NULL, NULL, NULL,
-    NULL, NULL, NULL, NULL,
+    NULL, NULL, "md-clear", NULL,
     NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL,