From: Keith Seitz <keiths@redhat.com>
To: "Schimpe, Christina" <christina.schimpe@intel.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Simon Marchi <simark@simark.ca>
Cc: "hjl.tools@gmail.com" <hjl.tools@gmail.com>
Subject: Re: [PATCH 2/2] gdb, gdbserver: Add Intel APX register support
Date: Tue, 7 Jul 2026 10:53:43 -0700 [thread overview]
Message-ID: <ab0e8da3-4c89-425c-bb1e-fbf0c57be871@redhat.com> (raw)
In-Reply-To: <SN7PR11MB7638E062EBC93CD4853BE8E0F9F02@SN7PR11MB7638.namprd11.prod.outlook.com>
On 7/7/26 10:15 AM, Schimpe, Christina wrote:
>> -----Original Message-----
>> From: Keith Seitz <keiths@redhat.com>
>>
>> I have a (probably naive) question about 'apx_layout' in the various
>> supported configurations. As patched, this member is set when XCR0 has a bit
>> set for PKRU or AVX512 support. Does this mean that EGPR reads from core
>> files with only "plain" AVX support will be incorrect (at offest 0 instead of
>> 960)? AFAICT, the set of features described by XCR0 are independent of each
>> other, e.g., having PKRU does not mean that APX is enabled/supported.
>
> Yes, in theory every xsave feature is totally independent from each other.
>
> However, our assumption for known Intel CPUs is that apx is possible
> - with amx (this case is only implemented for gdb-oneapi, since amx is not yet merged upstream)
> - with pkru (without amx)
> - with avx512 (without pkru, amx)
>
>> This may be a paper-only issue, but perhaps a little defensive programming
>> might be in order?
>
> This function should be replaced one day with a proper solution.
>
> See
> "The long term solution is to pull the CPUID info from gdbserver in the form of NT_X86_CPUID, but in the short term we could just always use the Intel layout that GDB assumed before the XSAVE series. That is, we could pick a default layout based on the XCR0 mask that corresponds to one of the known sizes and use that to set both the layout and size. I'll see if I can't come up with a variant of that today or tomorrow."
> https://sourceware.org/bugzilla/show_bug.cgi?id=30912
>
> I believe for now we must live with that heuristic. Adding @Simon Marchi to confirm.
>
Ah, thank you for pointing me to previous context. I did not remember
any of that.
In which case, I don't have further concerns with the patch with
the previous problems addressed.
Thanks!
Keith
next prev parent reply other threads:[~2026-07-07 17:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 11:11 [PATCH 0/2] Add Intel APX support Christina Schimpe
2026-06-02 11:11 ` [PATCH 1/2] gdb: add maintenance set/show gcore xml-target-description command Christina Schimpe
2026-06-02 12:22 ` Eli Zaretskii
2026-06-09 21:02 ` Schimpe, Christina
2026-06-10 11:43 ` Eli Zaretskii
2026-06-15 7:54 ` Schimpe, Christina
2026-06-18 17:31 ` Keith Seitz
2026-07-07 17:07 ` Schimpe, Christina
2026-07-10 11:57 ` Schimpe, Christina
2026-06-02 11:11 ` [PATCH 2/2] gdb, gdbserver: Add Intel APX register support Christina Schimpe
2026-06-02 12:25 ` Eli Zaretskii
2026-06-18 17:33 ` Keith Seitz
2026-07-07 17:15 ` Schimpe, Christina
2026-07-07 17:53 ` Keith Seitz [this message]
2026-07-07 17:15 ` Schimpe, Christina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ab0e8da3-4c89-425c-bb1e-fbf0c57be871@redhat.com \
--to=keiths@redhat.com \
--cc=christina.schimpe@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=hjl.tools@gmail.com \
--cc=simark@simark.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox