]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/cpu-policy: Add an IBRS -> AUTO_IBRS dependency
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 31 May 2023 15:26:56 +0000 (16:26 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 Jun 2023 09:34:21 +0000 (10:34 +0100)
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 <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/tools/gen-cpuid.py

index f28ff708a2fc273200d19453191260eb8e069704..973fcc1c64e83109c5d3a569d0c8cb196cff6ad3 100755 (executable)
@@ -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],