lkml.org 
[lkml]   [2021]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 25/28] x86/fpu/xstate: Skip writing zeros to signal frame for dynamic user states if in INIT-state
From
Date
On 5/24/21 11:15 AM, Len Brown wrote:
> On Sun, May 23, 2021 at 11:28 PM Andy Lutomirski <luto@kernel.org> wrote:
>> But what happens if we don't have the XGETBV1 feature? Are we making
>> AMX support depend on XGETBV1?
>
> Yes, AMX systems always have XGETBV.

XGETBV1 support is actually separate from the XGETBV instruction itself.
XGETBV1 even has its own CPUID bit.

This means that a silly hypervisor or lazy future hardware
implementation could decide to enumerate support for AMX and neglect
XGETBV1.

But, it's perfectly fine to have our AMX support depend on XGETBV1. We
even have a little dependency checker table which will clear the AMX
feature in the presence of one of those silly hypervisors.

\
 
 \ /
  Last update: 2021-05-24 20:29    [W:0.059 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site