xen/cpu-policy: Add an IBRS -> AUTO_IBRS dependency
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")
Signed-off-by Andrew Cooper <[email protected]>
---
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
@@ -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
Quoted 2 lines · Andrew Cooper
AUTO_IBRSis 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@@ -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:
465217b0f872602b4084a1b0fa2ef75377cb3589Signature · 1 line
2.30.2
LGTM
Alejandro
Quoted 5 lines · Andrew Cooper
AUTO_IBRSis 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")Signed-off-by Andrew Cooper <[email protected]>
Reviewed-by Jan Beulich <[email protected]>