Re: [PATCH v2 1/6] x86/fpu/xstate: Always preserve non-user xfeatures/flags in __state_perm
From: Dave Hansen
Date: Tue Mar 04 2025 - 17:20:27 EST
On 11/26/24 02:17, Chao Gao wrote:
> When granting userspace or a KVM guest access to an xfeature, preserve the
> entity's existing supervisor and software-defined permissions as tracked
> by __state_perm, i.e. use __state_perm to track *all* permissions even
> though all supported supervisor xfeatures are granted to all FPUs and
> FPU_GUEST_PERM_LOCKED disallows changing permissions.
Should we document what __state_perm contains either in
fpu_state_perm or xstate_get_group_perm()?
Either way:
Acked-by: Dave Hansen <dave.hansen@xxxxxxxxx>