public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Sergey Bugaev <bugaevc@gmail.com>
To: Samuel Thibault <samuel.thibault@gnu.org>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>,
	"H.J. Lu" <hjl.tools@gmail.com>,
	 libc-alpha@sourceware.org, bug-hurd@gnu.org,
	Luca <luca@orpolo.org>
Subject: Re: [VERY RFC PATCH 2/2] hurd: Make it possible to call memcpy very early
Date: Sat, 22 Apr 2023 15:18:08 +0300	[thread overview]
Message-ID: <CAN9u=HeFeDedCsrLXyt0HfTetK5LWcODM9X-=vVboYFEj4FyYQ@mail.gmail.com> (raw)
In-Reply-To: <20230422115921.24upng76tpj2ymb3@begin>

On Sat, Apr 22, 2023 at 2:59 PM Samuel Thibault <samuel.thibault@gnu.org> wrote:
> Perhaps we can generate "init" variants of the RPCs that we need at
> initialization, that are made to use the base memcpy implementation, and
> only use them in the init code?

If we undo 56010b73e81e2cb1082e418699f98353598fe671 for static builds
(basically stick && defined (SHARED) in there) and apply Adhemerval's
suggestion, we might even get away without compiling separate init
versions. We should only need to de-ifunc-ify init-first.c,
thread_set_state, hurdstartup.c, and exec_startup_get_info. If they
all go through __mig_memcpy which is in a separate translation unit,
we'd have to make __mig_memcpy slow for everyone; but if they call
memcpy directly, we can selectively make only those ones use the slow
memcpy.

What do you think?

Sergey

  reply	other threads:[~2023-04-22 12:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20 18:42 [PATCH 1/2] hurd: Don't migrate reply port into __init1_tcbhead Sergey Bugaev
2023-04-20 18:42 ` [VERY RFC PATCH 2/2] hurd: Make it possible to call memcpy very early Sergey Bugaev
2023-04-20 20:25   ` H.J. Lu
2023-04-20 20:38     ` Adhemerval Zanella Netto
2023-04-21  9:27       ` Sergey Bugaev
2023-04-21 11:50         ` Adhemerval Zanella Netto
2023-04-21 12:38           ` Sergey Bugaev
2023-04-21 12:58             ` Adhemerval Zanella Netto
2023-04-21 13:56               ` Sergey Bugaev
2023-04-21 14:28                 ` Adhemerval Zanella Netto
2023-04-22 11:59                 ` Samuel Thibault
2023-04-22 12:18                   ` Sergey Bugaev [this message]
2023-04-22 16:20                     ` Samuel Thibault
2023-04-22 17:04                       ` Sergey Bugaev
2023-04-21 11:51     ` Sergey Bugaev
2023-04-21  1:02 ` [PATCH 1/2] hurd: Don't migrate reply port into __init1_tcbhead Samuel Thibault

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='CAN9u=HeFeDedCsrLXyt0HfTetK5LWcODM9X-=vVboYFEj4FyYQ@mail.gmail.com' \
    --to=bugaevc@gmail.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=bug-hurd@gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=luca@orpolo.org \
    --cc=samuel.thibault@gnu.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).