From: Zachary Amsden <zach@vmware.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Ingo Molnar <mingo@elte.hu>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH RFC WIP] x86/paravirt: add register-saving thunks to reduce caller register pressure
Date: Wed, 28 Jan 2009 15:05:03 -0800 [thread overview]
Message-ID: <1233183903.16317.242.camel@bodhitayantram.eng.vmware.com> (raw)
In-Reply-To: <4980A07D.3010008@goop.org>
On Wed, 2009-01-28 at 10:14 -0800, Jeremy Fitzhardinge wrote:
> Hi Guys,
> Zach: I wasn't really sure of what the VMI ABI calling convention is, so
> I haven't converted VMI yet. I wasn't sure if it needs a register
> saving thunk to wrap the calls, or if they're guaranteed to not trash
> anything other than eax/rax. Please advise.
C-like, allowing C or assembly implementations of calls. Currently
several of the most important calls have a restricted clobber set,
however, and since it's clear there aren't any forthcoming new
implementations of a VMI ROM, it might be better to go with the actual
clobbers for performance critical ops.
> Standard calling convention is:
> arguments return scratch
> x86-32 eax edx ecx eax ?
ecx, edx
> The most common paravirt ops, both statically and dynamically, are
> interrupt enable/disable/save/restore, so handle them first. This is
> particularly easy since their calls are handled specially anyway.
> XXX Deal with VMI. What's their calling convention?
Enable/Disable have no clobbers at all.
Save clobbers only return value, %eax
Restore also clobbers nothing.
The patching code has gotten quite complex with the 32/64 union; let me
apply it first and see before I comment on the patch.
Zach
next prev parent reply other threads:[~2009-01-28 23:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-28 18:14 Jeremy Fitzhardinge
2009-01-28 23:05 ` Zachary Amsden [this message]
2009-01-28 23:17 ` Jeremy Fitzhardinge
2009-01-28 23:38 ` Jeremy Fitzhardinge
2009-01-30 21:06 ` Pavel Machek
2009-02-03 15:12 ` Ingo Molnar
2009-02-03 17:23 ` Jeremy Fitzhardinge
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=1233183903.16317.242.camel@bodhitayantram.eng.vmware.com \
--to=zach@vmware.com \
--cc=Ian.Campbell@citrix.com \
--cc=hpa@zytor.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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
all inboxes | Powered by JetHome®