public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: linux-ia64@vger.kernel.org
Subject: Re: Fast Syscalls and Virtualised Linux on Linux
Date: Mon, 04 Jul 2005 15:09:33 +0000	[thread overview]
Message-ID: <20050704150933.GA4102@infradead.org> (raw)
In-Reply-To: <17090.8605.481641.322881@wombat.chubb.wattle.id.au>

On Fri, Jul 01, 2005 at 09:05:36AM +1000, Peter Chubb wrote:
> In the clone2() commentary there's:
> 
> 	/*
> 	 * clone2() is special: the child cannot execute br.ret right
> 	 * after the system call returns, because it starts out
> 	 * executing on an empty stack.  Because of this, we can't use
> 	 * the new (lightweight) syscall convention here.  Instead, we
> 	 * just fall back on always using "break".
> 	 *
> 	 * Furthermore, since the child starts with an empty stack, we
> 	 * need to avoid unwinding past invalid memory.  To that end,
> 	 * we'll pretend now that __clone2() is the end of the
> 	 * call-chain.  This is wrong for the parent, but only until
> 	 * it returns from clone2() but it's better than the
> 	 * alternative.
> 	 */

I might be missing something, so please help me a little more.  If you
look at x86 they always provider a vdso, for hardware recent enough
yhey use sysenter, else they do the same old int 0x80 an old libc would
do.  Now in the ia64 vdso couldn't you do a syscall similar enough to
the old one, just with the fixups inline you'd want the patches libc
for?


      parent reply	other threads:[~2005-07-04 15:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29  4:20 Fast Syscalls and Virtualised Linux on Linux Peter Chubb
2005-06-29 15:03 ` Magenheimer, Dan (HP Labs Fort Collins)
2005-06-30 14:12 ` Jes Sorensen
2005-06-30 14:15 ` Christoph Hellwig
2005-06-30 23:05 ` Peter Chubb
2005-07-04 15:09 ` Christoph Hellwig [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=20050704150933.GA4102@infradead.org \
    --to=hch@infradead.org \
    --cc=linux-ia64@vger.kernel.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