Skip to content

x86/fpu: Fix FPU initialization order to enable PKRU

Vitaly Kuznetsov requested to merge vkuznets/centos-stream-9:RHEL-22182 into main

JIRA: https://issues.redhat.com/browse/RHEL-22650

'state_test' KVM selftest discovered that PKRU feature is broken. The root cause of the issue is that fpu__init_system_xstate() is checking X86_FEATURE_OSPKE feature before enabling XFEATURE_PKRU but X86_FEATURE_OSPKE is set by setup_pku() later. Upstream, the initialization order was changed and things work properly.

Signed-off-by: Vitaly Kuznetsov vkuznets@redhat.com

Edited by Vitaly Kuznetsov

Merge request reports