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

[Xen-devel] Re: [PATCH 2/3] xen: make direct versions of irq_enable/disa

To: Tejun Heo <htejun@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH 2/3] xen: make direct versions of irq_enable/disable/save/restore to common code
From: Ingo Molnar <mingo@xxxxxxx>
Date: Thu, 5 Feb 2009 16:00:28 +0100
Cc: Brian Gerst <brgerst@xxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>
Delivery-date: Thu, 05 Feb 2009 07:01:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <498A87B5.3020808@xxxxxxxxx>
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: <4983AC87.5000304@xxxxxxxx> <498A87B5.3020808@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
* Tejun Heo <htejun@xxxxxxxxx> wrote:

> Hello,
> 
> Jeremy Fitzhardinge wrote:
> > Now that x86-64 has directly accessible percpu variables, it can also
> > implement the direct versions of these operations, which operate on a
> > vcpu_info structure directly embedded in the percpu area.
> > 
> > In fact, the 64-bit versions are more or less identical, and so can be
> > shared.  The only two differences are:
> > 1. xen_restore_fl_direct takes its argument in eax on 32-bit, and rdi on
> > 64-bit.
> >    Unfortunately it isn't possible to directly refer to the 2nd lsb of
> > rdi directly
> >    (as you can with %ah), so the code isn't quite as dense.
> > 2. check_events needs to variants to save different registers.
> > 
> > Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
> > ---
> > arch/x86/xen/Makefile     |    3 arch/x86/xen/xen-asm.S    |  140
> > +++++++++++++++++++++++++++++++++++++++++++++
> > arch/x86/xen/xen-asm.h    |   12 +++
> > arch/x86/xen/xen-asm_32.S |  113 ++++--------------------------------
> > arch/x86/xen/xen-asm_64.S |  136
> > +------------------------------------------
> > 5 files changed, 171 insertions(+), 233 deletions(-)
> ...
> > ===================================================================
> > --- a/arch/x86/xen/xen-asm_32.S
> > +++ b/arch/x86/xen/xen-asm_32.S
> > @@ -11,101 +11,28 @@
> >     generally too large to inline anyway.
> >  */
> > 
> > -#include <linux/linkage.h>
> > -
> > -#include <asm/asm-offsets.h>
> > +//#include <asm/asm-offsets.h>
> 
> Applied without the above addition of //

btw., that's still worth fixing, plus the comments styles could be 
standardized. And this should grow an extra space after the comma:

        lea 4(%edi),%esp                /* point esp to new frame */

(there's 5-6 similar instructions in that file with this problem - the rest 
is fine.)

        Ingo

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

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