From: Andi Kleen <andi@firstfloor.org>
To: Roland McGrath <roland@redhat.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Various x86 syscall mechanisms
Date: Sat, 28 Jun 2008 07:00:02 +0200 [thread overview]
Message-ID: <87vdzup31p.fsf@basil.nowhere.org> (raw)
In-Reply-To: <20080627204954.166D0154077@magilla.localdomain> (Roland McGrath's message of "Fri, 20 Jun 2008 16:39:34 -0700 (PDT)")
Roland McGrath <roland@redhat.com> writes:
>
> I think it is clearest to talk separately about the "intended ABI", the
> "what actually works today", and the "why". (Also note I was not the
> decision-maker in this, just picking up what I can see.)
You are correct.
> For the 32-bit ABI, what I believe was always the intent for what could be
> considered the proper ABI is "int 0x80" or "use the vDSO entry point". If
> someone asked me what you could ever have expected to rely on for the
> future, I would say exactly that. The use of the vDSO is explicitly
> intended to take the details of sysenter/syscall or other such new
> instructions out of the 32-bit ABI picture for what any proper application
> will expect from the kernel.
For SYSENTER the vDSO is even needed because it relies on a hardcoded
return address.
> AMD's were the first x86_64 CPUs, and those always supported "syscall"
> from 32-bit tasks to 64-bit kernels. (I don't know whether AMD CPUs now
> support "sysenter" from 32-bit tasks to 64-bit kernels, and if so which
> past AMD64 CPUs may not have supported that. On today's kernel you could
K8 at least.
> It was long on my back-burner list to toss in the "syscall" version of the
> 32-bit vDSO for 32-bit kernels on hardware that supports "syscall". But,
That would only make a difference on K6 (K7 supports SYSENTER), and also
K6/K7 SYSCALL was slightly different from the K8 version.
-Andi
next prev parent reply other threads:[~2008-06-28 5:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-20 22:00 Various x86 syscall mechanisms Jeremy Fitzhardinge
2008-06-20 23:39 ` Roland McGrath
2008-06-27 21:45 ` Jeremy Fitzhardinge
2008-06-27 21:52 ` Roland McGrath
2008-06-28 5:00 ` Andi Kleen [this message]
2008-06-30 0:07 ` Bill Davidsen
2008-06-21 0:27 ` H. Peter Anvin
2008-06-21 2:00 ` Jeremy Fitzhardinge
2008-06-21 14:02 ` Andi Kleen
2008-06-21 16:51 ` H. Peter Anvin
2008-07-01 12:06 ` Jan Engelhardt
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=87vdzup31p.fsf@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.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