On 26/01/2026 5:53 pm, Andrew Cooper wrote:
> Currently, the BSP only leaves instructions for the APs to adjust
> MSR_MISC_ENABLE if the BSP is found to need adjustments.  Particularly if
> XD_DISABLE is needed on an AP but not the BSP, the system will triple fault
> with no information provided to the user.
>
> Rework the BSP and trampoline logic to always read MISC_ENABLE, and clear
> CPUID_LIMIT and XD_DISABLE if either are set.
>
> Repurpose intel_unlock_cpuid_leaves() to be intel_check_misc_enable() and make
> it static in common.c.  Replace trampoline_misc_enable_off with the smaller
> trampoline_check_misc_enable.
>
> Signed-off-by: Andrew Cooper <[email protected]>
> ---
> CC: Jan Beulich <[email protected]>
> CC: Roger Pau MonnĂ© <[email protected]>
> CC: Julian Vetter <[email protected]>
> CC: Teddy Astie <[email protected]>
>
> This temporarily removes the printk() noting the reactivation of XD because
> the earlier BSP code has already done it, but that logic is about to be
> removed.

Actually, I'd forgotten that this is still reachable, via xen.efi, and
is the bug that kicked off all this work originally.

Julien has requested that I try to integrate the two series together,
which I'll do for v2.

~Andrew

Reply via email to