All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: James <James.McKenzie@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir@xen.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Jean Guyader <jean.guyader@eu.citrix.com>,
	Jean Guyader <Jean.Guyader@citrix.com>,
	Ian Campbell <Ian.Campbell@eu.citrix.com>
Subject: Re: Re: [PATCH] Linux: 6 arguments hypercall v3
Date: Sun, 03 Jul 2011 00:05:02 +0100	[thread overview]
Message-ID: <4E0FA41E.5010301@goop.org> (raw)
In-Reply-To: <20110627201907.GA8795@taoand.xen.fishsoupisgoodforyou.com>

On 06/27/2011 09:19 PM, James wrote:
> On Fri, Jun 24, 2011 at 03:43:18PM -0700, Jeremy Fitzhardinge wrote:
>> On 06/24/2011 03:15 PM, Jean Guyader wrote:
>>> I only tested it gcc 4.4.
>>>
>>> We could still use the v2 which is not as nice, but it doesn't try to
>>> load eax twice. Let me know which one you will feel better about.
> Given "that loading r0 twice" is in the gcc documentation as an
> example at
>
> http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#index-extended-_0040code_007basm_007d-2601
>
> I think it's fair to use that.
>
>> I feel best about the one you've successfully tested with a number of
>> older compilers ;)
> what compilers work to build modern linux? We'll give a goodly set of them
> a try if that makes everyone feel better.

HPA says:
> For x86, we support 3.4, 4.0 and 4.1.2 and above (not sure if 4.0.x
> actually works).



>> Does it have to?  Couldn't it take a pointer to a struct or something?
> Yes we could change the API, make sure the struct is visible on all
> CPUs, making it incompatible with the existing code, but I think that
> misses the point: Xen is written to support 6 argument hypercalls, but
> 32 bit dom0 is missing the functionality to call them. Surely that's 
> something we should fix?

The nominal ability of 6 arg hypercalls is moot if there aren't actually
any hypercalls which have 6 args.  The fact that 6 args uses ebp on
32-bit is incredibly awkward, and it seems better to just say that it in
fact only supports 5, and adjust the v4v call(s) accordingly.

    J

  reply	other threads:[~2011-07-02 23:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 15:13 [PATCH] Linux: 6 arguments hypercall v3 Jean Guyader
2011-06-24 17:26 ` Jeremy Fitzhardinge
2011-06-24 22:15   ` Jean Guyader
2011-06-24 22:43     ` Jeremy Fitzhardinge
2011-06-27 20:19       ` James
2011-07-02 23:05         ` Jeremy Fitzhardinge [this message]
2011-07-03 11:16         ` Ian Campbell
2012-01-06 15:20           ` [PATCH] Linux: 6 arguments hypercall v3 / V4V Pasi Kärkkäinen

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=4E0FA41E.5010301@goop.org \
    --to=jeremy@goop.org \
    --cc=Ian.Campbell@eu.citrix.com \
    --cc=James.McKenzie@citrix.com \
    --cc=Jean.Guyader@citrix.com \
    --cc=jean.guyader@eu.citrix.com \
    --cc=keir@xen.org \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.