On 04/04/2025 10:49 am, Teddy Astie wrote:
> diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
> index d70abb7e0c..0e2e7d012f 100644
> --- a/xen/arch/x86/setup.c
> +++ b/xen/arch/x86/setup.c
> @@ -2008,6 +2008,14 @@ void asmlinkage __init noreturn __start_xen(void)
> if ( cpu_has_pku )
Aside exposing this flag to guests, Xen can also make use of it
to reduce the cost of some TLB flushes. Enable this flag if supported
by hardware.
Signed-off-by: Teddy Astie
---
v2:
- Add changelog entry
- use trampoline_efer
- use cpu_has_tce instead of opencoded boot_cpu_has(X86_FEATURE_TCE)