]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
x86/spec-ctrl: Add BHI controls to userspace components
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Mar 2023 12:44:27 +0000 (13:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Mar 2023 12:44:27 +0000 (13:44 +0100)
This was an oversight when adding the Xen parts.

Fixes: cea9ae062295 ("x86/spec-ctrl: Enumeration for new Intel BHI controls")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 9276e832aef60437da13d91e66fc259fd94d6f91
master date: 2023-03-13 11:26:26 +0000

tools/libs/light/libxl_cpuid.c
tools/misc/xen-cpuid.c

index d97a2f3338bc8a3a3026d65af4efd56380afef2e..55cfbc8f237df4d8826b4e73144185ab09e2dcf2 100644 (file)
@@ -238,6 +238,9 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str)
         {"cet-sss",      0x00000007,  1, CPUID_REG_EDX, 18,  1},
 
         {"intel-psfd",   0x00000007,  2, CPUID_REG_EDX,  0,  1},
+        {"ipred-ctrl",   0x00000007,  2, CPUID_REG_EDX,  1,  1},
+        {"rrsba-ctrl",   0x00000007,  2, CPUID_REG_EDX,  2,  1},
+        {"bhi-ctrl",     0x00000007,  2, CPUID_REG_EDX,  4,  1},
         {"mcdt-no",      0x00000007,  2, CPUID_REG_EDX,  5,  1},
 
         {"lahfsahf",     0x80000001, NA, CPUID_REG_ECX,  0,  1},
index 0248eaef44c1a605a3d0df772c3ecb99e9250f0c..45e443f5d9adaa89f96c508836edd73657d11497 100644 (file)
@@ -213,9 +213,9 @@ static const char *const str_7d1[32] =
 
 static const char *const str_7d2[32] =
 {
-    [ 0] = "intel-psfd",
-
-    /* 4 */                 [ 5] = "mcdt-no",
+    [ 0] = "intel-psfd",    [ 1] = "ipred-ctrl",
+    [ 2] = "rrsba-ctrl",
+    [ 4] = "bhi-ctrl",      [ 5] = "mcdt-no",
 };
 
 static const struct {