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] [PATCH] [Bug 936] Fix "cpus" in config.sxp

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [Bug 936] Fix "cpus" in config.sxp
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 28 Mar 2007 00:42:22 +0900
Delivery-date: Tue, 27 Mar 2007 08:42:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
Hi,

I fixed the Xen bugzilla 936. 
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=936

Currently, "cpus" output to config.sxp is the following form.
Therefore _parse_sxp() cannot convert '[1' to integer. 

  e.g. (cpus '[1, 2]')   --- string

This patch changes output form of "cpus".  The form is as follows. 

  e.g. (cpus (1 2))

However, the bug cannot be solved only by the change.  When xend 
is started, "cpus" of the SXP configuration passes to _parse_sxp() 
in the following form. 

  e.g. ['cpus': ['1', '2']]   --- list of string

Therefore this patch adds proceeding of to convert list of string 
to list of integer for "cpus". 

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: bug936.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>