[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJvTdKmq2qKgkkbeQzQ6dG14+EWZ_eTbz6c6neGLFo_X=PCJeg@mail.gmail.com>
Date: Mon, 24 May 2021 14:15:53 -0400
From: Len Brown <lenb@...nel.org>
To: Andy Lutomirski <luto@...nel.org>
Cc: "Chang S. Bae" <chang.seok.bae@...el.com>,
Borislav Petkov <bp@...e.de>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...nel.org>, X86 ML <x86@...nel.org>,
"Brown, Len" <len.brown@...el.com>,
Dave Hansen <dave.hansen@...el.com>,
"Liu, Jing2" <jing2.liu@...el.com>,
"Ravi V. Shankar" <ravi.v.shankar@...el.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v5 25/28] x86/fpu/xstate: Skip writing zeros to signal
frame for dynamic user states if in INIT-state
On Sun, May 23, 2021 at 11:28 PM Andy Lutomirski <luto@...nel.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.
> How does this patch interact with "[PATCH v5 24/28] x86/fpu/xstate: Use
> per-task xstate mask for saving xstate in signal frame"? They seem to
> be try to do something similar but not quite the same, and they seem to
> be patching the same function. The result seems odd.
The previous patch allowed non-AMX tasks to skip writing 8KB of zeros
to their signal stack. This patch builds on that to allow an AMX-task
in INIT to also skip writing 8KB of zeros to its signal stack.
> Finally, isn't part of the point that we need to avoid even *allocating*
> space for non-AMX-using tasks? That would require writing out the
> compacted format and/or fiddling with XCR0.
The current signal stack ABI is that the user receives all
architectural state in
uncompressed XTATE format on the signal stack. They can XRESTOR it
and the right thing happens.
We can optimize the data transfer (and we have), but we can't optimize the space
without changing that ABI.
Again, I'm happy to investigate a new opt-in fast-signal ABI that doesn't
have all this state. But so far, nobody has asked for it, or even identified
an application that cares about minimum-overhead signals.
Can you recommend one?
thanks,
Len Brown, Intel Open Source Technology Center
Powered by blists - more mailing lists