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] [patch] pagetable cleanups

To: "Michael A Fetterman" <Michael.Fetterman@xxxxxxxxxxxx>, "Gerd Knorr" <kraxel@xxxxxxxxxxx>
Subject: RE: [Xen-devel] [patch] pagetable cleanups
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 14 Apr 2005 15:14:01 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Apr 2005 14:13:56 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcU/ljeVuKzD+LrJRfe15kAgNEynKgBR1wJQAAeSuXA=
Thread-topic: [Xen-devel] [patch] pagetable cleanups
> 4) There was probably a bunch of debate about this somewhere 
> before, but I missed it.
>    The macros which set/clear page table types don't obey C's 
> pass-by-value calling
>    semantics.  That means that they can't be replaced with 
> simple functions, if
>    desired -- there would always have to be a macro layer.  
> There's also no macros
>    for creating L1E or L2E as expressions -- only statements 
> which assign them.
>    Perhaps this was intentional?  It means that you end up 
> declaring extra
>    variables to hold essentially temporary values in a few places...
> Comments?

I know it's a total pain in the arse, but I'm actually quite convinced
by Michael's argument. Having the 'create' macros return a struct is
actually much nicer for building expressions. 

I want to get this stuff checked in soon, though.

Ian

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