Re: [PATCH v3 for-4.22] x86/cpu-policy: set up host policy earlier
Andrew Cooper <[email protected]> Wed, 29 Jul 2026 15:00:29 +0100
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <[email protected]> |
On 08/07/2026 3:55 pm, Jan Beulich wrote:
> In order to use cpu_has_* expanding to host_cpu_policy.*, the host policy
> needs setting up alongside boot_cpu_data.x86_capability[]. Arrange for
> that towards the end of identify_cpu(). Then make sure .x86_capability[]
> and host policy remain in sync when setup_{force,clear}_cpu_cap() are
> used.
>
> Rename the function now it's no longer static.
>
> Fixes: 894bd7617924 ("x86/Intel: use host CPU policy for ARAT checking")
> Reported-by: Marek Marczykowski-Górecki <[email protected]>
> Signed-off-by: Jan Beulich <[email protected]>
> Release-Acked-by: Oleksii Kurochko <[email protected]>
Acked-by: Andrew Cooper <[email protected]>
I really really dislike this patch, but I can't come up with a better
solution in the 0 time we have until the 4.22 release.