Skip to contentSkip to conversation

i386: cpu: add missing CPUID[EAX=7,ECX=0] flag names

PATCH Applied Eduardo Habkost 3 participants 3 messages Oct 9, 2012 – Oct 26, 2012 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: cpu: add missing CPUID[EAX=7,ECX=0] flag names

This makes QEMU recognize the following CPU flag names:

Flags | Corresponding KVM kernel commit
-----------------+----------------------------------------

 FSGSBASE         | 176f61da82435eae09cc96f70b530d1ba0746b8b
 AVX2, BMI1, BMI2 | fb215366b3c7320ac25dca766a0152df16534932
 HLE, RTM         | 83c529151ab0d4a813e3f6a3e293fff75d468519
 INVPCID          | ad756a1603c5fac207758faaac7f01c34c9d0b7b
 ERMS             | a01c8f9b4e266df1d7166d23216f2060648f862d
---
 target-i386/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target-i386/cpu.c +2 -2
index f3708e6..b012372 100644
@@ -105,8 +105,8 @@ static const char *svm_feature_name[] = {
 };
 
 static const char *cpuid_7_0_ebx_feature_name[] = {
-    NULL, NULL, NULL, NULL, NULL, NULL, NULL, "smep",
-    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+    "fsgsbase", NULL, NULL, "bmi1", "hle", "avx2", NULL, "smep",
+    "bmi2", "erms", "invpcid", "rtm", NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL, "smap", NULL, NULL, NULL,
     NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 };
Signature · 1 line
1.7.11.4
Reviewed-by on v1 1/1
#1 lore raw

Re: [Qemu-devel] [QEMU PATCH] i386: cpu: add missing CPUID[EAX=7, ECX=0] flag names

Quoted 20 lines · Eduardo Habkost

This makes QEMU recognize the following CPU flag names:

Flags | Corresponding KVM kernel commit
-----------------+----------------------------------------

  FSGSBASE         | 176f61da82435eae09cc96f70b530d1ba0746b8b
  AVX2, BMI1, BMI2 | fb215366b3c7320ac25dca766a0152df16534932
  HLE, RTM         | 83c529151ab0d4a813e3f6a3e293fff75d468519
  INVPCID          | ad756a1603c5fac207758faaac7f01c34c9d0b7b
  ERMS             | a01c8f9b4e266df1d7166d23216f2060648f862d
---
  target-i386/cpu.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
target-i386/cpu.c +0 -0
index f3708e6..b012372 100644

target-i386/cpu.c static const char *svm_feature_name[] = { · line 112

Quoted 10 lines
target-i386/cpu.c +2 -2
@@ -105,8 +105,8 @@ static const char *svm_feature_name[] = {
  };
 
  static const char *cpuid_7_0_ebx_feature_name[] = {
-    NULL, NULL, NULL, NULL, NULL, NULL, NULL, "smep",
-    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+    "fsgsbase", NULL, NULL, "bmi1", "hle", "avx2", NULL, "smep",
+    "bmi2", "erms", "invpcid", "rtm", NULL, NULL, NULL, NULL,
      NULL, NULL, NULL, NULL, "smap", NULL, NULL, NULL,
      NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  };
#2 lore raw

Re: [Qemu-devel] [QEMU PATCH] i386: cpu: add missing CPUID[EAX=7, ECX=0] flag names

Quoted 16 lines · Don Slutz
Quoted 15 lines · Eduardo Habkost

This makes QEMU recognize the following CPU flag names:

Flags | Corresponding KVM kernel commit
-----------------+----------------------------------------

 FSGSBASE         | 176f61da82435eae09cc96f70b530d1ba0746b8b
 AVX2, BMI1, BMI2 | fb215366b3c7320ac25dca766a0152df16534932
 HLE, RTM         | 83c529151ab0d4a813e3f6a3e293fff75d468519
 INVPCID          | ad756a1603c5fac207758faaac7f01c34c9d0b7b
 ERMS             | a01c8f9b4e266df1d7166d23216f2060648f862d
---
 target-i386/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 15 lines
Quoted 5 lines
target-i386/cpu.c +0 -0
index f3708e6..b012372 100644

target-i386/cpu.c static const char *svm_feature_name[] = { · line 111

Quoted 9 lines
target-i386/cpu.c +2 -2
@@ -105,8 +105,8 @@ static const char *svm_feature_name[] = {
 };
 static const char *cpuid_7_0_ebx_feature_name[] = {
-    NULL, NULL, NULL, NULL, NULL, NULL, NULL, "smep",
-    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+    "fsgsbase", NULL, NULL, "bmi1", "hle", "avx2", NULL, "smep",
+    "bmi2", "erms", "invpcid", "rtm", NULL, NULL, NULL, NULL,
     NULL, NULL, NULL, NULL, "smap", NULL, NULL, NULL,
     NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 };

Applied to uq/master, thanks.