WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [PATCH] Linux: 6 arguments hypercall v3

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH] Linux: 6 arguments hypercall v3
From: James <James.McKenzie@xxxxxxxxxx>
Date: Mon, 27 Jun 2011 21:19:07 +0100
Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jean Guyader <jean.guyader@xxxxxxxxxxxxx>, Jean Guyader <Jean.Guyader@xxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Mon, 27 Jun 2011 13:20:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E051306.4060109@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20110624151324.GB356@xxxxxxxxxxxxxxxxxxxxxxx> <4E04C8AA.2040506@xxxxxxxx> <20110624221513.GA8916@xxxxxxxxxxxxxxxxxxxxxxx> <4E051306.4060109@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-08-17)
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.

> 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?

James.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>