Skip to contentSkip to conversation

xen/cpu-policy: Add an IBRS -> AUTO_IBRS dependency

PATCH In review Andrew Cooper 3 participants 3 messages May 31, 2023 – Jun 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/cpu-policy: Add an IBRS -> AUTO_IBRS dependency

AUTO_IBRS is an extention over regular (AMD) IBRS, and needs hiding if IBRS is levelled out for any reason.

Fixes defaf651631a ("x86/hvm: Expose Automatic IBRS to guests")

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Alejandro Vallejo <[email protected]>

This was an oversight of mine when reviewing the aformentioned patch.

---
 xen/tools/gen-cpuid.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/tools/gen-cpuid.py +1 -1
index f28ff708a2fc..973fcc1c64e8 100755
@@ -319,7 +319,7 @@ def crunch_numbers(state):
         # as dependent features simplifies Xen's logic, and prevents the guest
         # from seeing implausible configurations.
         IBRSB: [STIBP, SSBD, INTEL_PSFD],
-        IBRS: [AMD_STIBP, AMD_SSBD, PSFD,
+        IBRS: [AMD_STIBP, AMD_SSBD, PSFD, AUTO_IBRS,
                IBRS_ALWAYS, IBRS_FAST, IBRS_SAME_MODE],
         AMD_STIBP: [STIBP_ALWAYS],
 

base-commit: 465217b0f872602b4084a1b0fa2ef75377cb3589

Signature · 1 line
2.30.2
#1 lore raw
Quoted 2 lines · Andrew Cooper

AUTO_IBRS is an extention over regular (AMD) IBRS, and needs hiding if IBRS is levelled out for any reason.

True that. My bad.

Quoted 18 lines
---
 xen/tools/gen-cpuid.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/tools/gen-cpuid.py +1 -1
index f28ff708a2fc..973fcc1c64e8 100755
@@ -319,7 +319,7 @@ def crunch_numbers(state):
         # as dependent features simplifies Xen's logic, and prevents the guest
         # from seeing implausible configurations.
         IBRSB: [STIBP, SSBD, INTEL_PSFD],
-        IBRS: [AMD_STIBP, AMD_SSBD, PSFD,
+        IBRS: [AMD_STIBP, AMD_SSBD, PSFD, AUTO_IBRS,
                IBRS_ALWAYS, IBRS_FAST, IBRS_SAME_MODE],
         AMD_STIBP: [STIBP_ALWAYS],
 
Quoted 4 lines

base-commit: 465217b0f872602b4084a1b0fa2ef75377cb3589

Signature · 1 line
2.30.2

LGTM

Alejandro