From: "Cui, Lili" <lili.cui@intel.com>
To: "Beulich, Jan" <JBeulich@suse.com>
Cc: "H.J. Lu" <hjl.tools@gmail.com>, Binutils <binutils@sourceware.org>
Subject: RE: [PATCH] x86: add missing APX logic to cpu_flags_match()
Date: Wed, 10 Jan 2024 01:44:36 +0000 [thread overview]
Message-ID: <SJ0PR11MB5600A1312EA04F4B2784DCB89E692@SJ0PR11MB5600.namprd11.prod.outlook.com> (raw)
In-Reply-To: <c1a0ad44-2571-4acd-a9a2-0ce4c7e8d1ed@suse.com>
>
> On 09.01.2024 12:00, Cui, Lili wrote:
> >> Subject: Re: [PATCH] x86: add missing APX logic to cpu_flags_match()
> >>
> >> On 09.01.2024 06:36, Cui, Lili wrote:
> >>> By the way, I have a question about " t->cpu_any", is it specific to
> >>> dual
> >> VEX/EVEX templates?
> >>
> >> No. And I think it's used elsewhere already - see e.g. SFENCE.
> >>
> > Oh, I get it. "any" means that any cpuid supports this instruction. It should
> be cleared for APX (Daul VEX/EVEX). IOW, "any" doesn't work with
> "cpuid&(cpuid|APX_F)".
>
> Well, in a way it does, as outlined in a comment: <cpuid>&(APX_F)
> (all.<cpuid>=true, any.apx_f=true, all other bits of any clear) simply is the same
> as <cpuid>&APX_F (all.<cpuid>=true + all.apx_f=true). The crucial part here is
> that "any" may not have any other bits set then (after the purging of the one
> <cpuid> one).
> And it was only while making the change that I noticed that doing things the
> way the patch is now doing them is overall more neat (with the same
> functional effect). As mentioned, we may still want to consider to simplify (or
> even purge) APX_F() as a result.
>
Yes, agree.
Thanks,
Lili.
prev parent reply other threads:[~2024-01-10 1:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-05 12:15 Jan Beulich
2024-01-08 3:17 ` Cui, Lili
2024-01-08 7:56 ` Jan Beulich
2024-01-08 8:30 ` Cui, Lili
2024-01-08 8:58 ` Jan Beulich
2024-01-08 10:28 ` Cui, Lili
2024-01-08 10:38 ` Jan Beulich
2024-01-09 5:36 ` Cui, Lili
2024-01-09 8:30 ` Jan Beulich
2024-01-09 11:00 ` Cui, Lili
2024-01-09 11:07 ` Jan Beulich
2024-01-10 1:44 ` Cui, Lili [this message]
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=SJ0PR11MB5600A1312EA04F4B2784DCB89E692@SJ0PR11MB5600.namprd11.prod.outlook.com \
--to=lili.cui@intel.com \
--cc=JBeulich@suse.com \
--cc=binutils@sourceware.org \
--cc=hjl.tools@gmail.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).