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 2/5] [POST-4.0]: HVM NUMA guest: pass NUMA inform

To: Andre Przywara <andre.przywara@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/5] [POST-4.0]: HVM NUMA guest: pass NUMA information to libxc
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 22 Feb 2010 11:57:49 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 22 Feb 2010 03:59:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B826545.4040802@xxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqzrzObYQi90TGfR5K1zC7KXVglWgABw1uu
Thread-topic: [Xen-devel] [PATCH 2/5] [POST-4.0]: HVM NUMA guest: pass NUMA information to libxc
User-agent: Microsoft-Entourage/12.23.0.091001
On 22/02/2010 11:06, "Andre Przywara" <andre.przywara@xxxxxxx> wrote:

>> I don't know the coding style, but you seem to have two different
>> version of it. Here you do the 'for (i= ..')
> It seems that Xen does not have a consistent coding style in this
> respect, I have seen both versions in Xen already. I usually do
> coding-style-by-copying, looking at similar nearby statements and
> applying the style to the new one (useful if you do code changes in Xen
> HV, tools, ioemu, etc.). That seemed to fail here.
> 
> Keir, is there a definite rule for the "space after brace" issue?

Follow the style of the file or module you edit. The style I prefer is
followed in most 'new' (as opposed to from-Linux) files in the hypervisor
itself, like xmalloc.c, page_alloc.c, x86_emulate.c, and loads of others.
Outside the hypervisor itself, I can't be bothered to police it and some
others seem to have intransigent opinions on the right-way-to-write-code. As
long as there is consistency at least on a per-file basis, personally I can
live with whatever.

 -- Keir



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

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