public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] x86: Set FSGSBASE to active if enabled by kernel
Date: Wed, 15 Mar 2023 17:42:40 -0700	[thread overview]
Message-ID: <CAMe9rOo4hYnZfkK8n1VYPVVAqeX1=CHt423K=1gYaTT+fhZisA@mail.gmail.com> (raw)
In-Reply-To: <87zg8grcjf.fsf@oldenburg.str.redhat.com>

On Mon, Mar 13, 2023 at 6:44 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu:
>
> > Linux kernel uses AT_HWCAP2 to indicate if FSGSBASE instructions are
> > enabled.  If the HWCAP2_FSGSBASE bit in AT_HWCAP2 is set, FSGSBASE
> > instructions can be used in user space.  Define dl_check_hwcap2 to set
> > the FSGSBASE feature to active on Linux when the HWCAP2_FSGSBASE bit is
> > set.
>
> Could you add a test against /proc/cpuinfo flags?  It should be a
> perfect match on current kernels.
>

Will do.

Thanks.

-- 
H.J.

      reply	other threads:[~2023-03-16  0:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-09 18:26 H.J. Lu
2023-03-13 13:44 ` Florian Weimer
2023-03-16  0:42   ` H.J. Lu [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='CAMe9rOo4hYnZfkK8n1VYPVVAqeX1=CHt423K=1gYaTT+fhZisA@mail.gmail.com' \
    --to=hjl.tools@gmail.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /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).