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] xenmon: remove magic number "31" (the idle domai

To: Keir.Fraser@xxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] xenmon: remove magic number "31" (the idle domain)
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Tue, 04 Jul 2006 16:48:20 +0900 (JST)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Jul 2006 00:49:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <2a7a55c7de2d697c126797c1fb982850@xxxxxxxxxxxx>
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>
References: <20060704.143731.74693697.kuwa@xxxxxxxxxxxxxx> <2a7a55c7de2d697c126797c1fb982850@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Keir,

>>>>> On Tue, 4 Jul 2006 08:06:57 +0100
>>>>> Keir.Fraser@xxxxxxxxxxxx(Keir Fraser)  said:
> 
> 
> On 4 Jul 2006, at 06:37, KUWAMURA Shin'ya wrote:
> 
> > This patch removes the magic number "31" for readability. The number
> > "31" means the idle domain ID.
> 
> Where does the magic number '31' come from in the first place? That's 
> not the number Xen uses. It could conflict with the domain id of a 
> non-idle domain.

"31" comes from xenmon.py and xenbaked.h.
xenmon.py:38:
  NDOMAINS = 32

xenbaked.h:42
  #define NDOMAINS 32

Notice that 31 is NDOMAINS-1.

Therefore, xenmon supports only up to 32 domains.

Thanks,
-- 
  KUWAMURA Shin'ya

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