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 of 3] support of cpupools in xl: commands and l

To: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2 of 3] support of cpupools in xl: commands and library changes
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Fri, 08 Oct 2010 10:41:07 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 08 Oct 2010 01:41:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1286527287; x=1318063287; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; z=Message-ID:=20<4CAED923.1040900@xxxxxxxxxxxxxx>|Date:=20 Fri,=2008=20Oct=202010=2010:41:07=20+0200|From:=20Juergen =20Gross=20<juergen.gross@xxxxxxxxxxxxxx>|MIME-Version: =201.0|To:=20Gianni=20Tedesco=20<gianni.tedesco@xxxxxxxxx m>|CC:=20"xen-devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel@lis ts.xensource.com>|Subject:=20Re:=20[Xen-devel]=20[PATCH =202=20of=203]=20support=20of=20cpupools=20in=20xl:=20com mands=0D=0A=20and=20library=20changes|References:=20<baee 85a244118f380808.1286286316@nehalem1>=20<1286372869.12843 .62.camel@xxxxxxxxxxxxxxxxxxxxxx>|In-Reply-To:=20<1286372 869.12843.62.camel@xxxxxxxxxxxxxxxxxxxxxx> |Content-Transfer-Encoding:=207bit; bh=8wmhhkhz9HjrF8Ds6/J7W4mtF2O++gYMYHWM8HkkKws=; b=V+AePiAVyUN0f56243UySEb+heM/WmYqJxNwF0vjvXswdbGnO7+62Gg/ cXRBekniT2DXaT/sMzLBgjnTuxpC9xeRRg/aBiCljm1HIc8SJYltsorGX VGJRqKx25EzVuFw4pkK26oFeFuqe5b/7nBMioAppeCvb1jIpwThBTjVBT L0faG1GCMQ0hd6jtT6tJt7DRnqSBzoxjBZNXO54+eA3AIrNdLS2Ih90wf qvFWV+QrZIhshSNVqricrf1+ajX8A;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=DKhi4Xc+Gt7/+9N9qKetXliWtjFbBPeYpIl/rZbRiV+9RtP4hDSrNFpD 5D3x/Vd7hyTtZ+KSHw91yLCvmLkHAPGkl5sn00piq/TsYhvKDZFlDzhzi zMxYjS/X7ijMeciI0PTBMjaCCfBV0vuJxRkWIIF3auKtw+4JA5cJR5xvd gOmqqi0v0GaneowhNWolKkeA0Y0ENsycUNb2w4HkfkiF9WJKSHjvQth3V lX0Ht/6swx/FKyebHehrZQ3ipp2bf;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1286372869.12843.62.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
Organization: Fujitsu Technology Solutions
References: <baee85a244118f380808.1286286316@nehalem1> <1286372869.12843.62.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100913 Iceowl/1.0b1 Icedove/3.0.7
On 10/06/10 15:47, Gianni Tedesco wrote:
On Tue, 2010-10-05 at 14:45 +0100, Juergen Gross wrote:
diff -r cfce8e755505 -r baee85a24411 tools/python/xen/lowlevel/xl/xl.c
--- a/tools/python/xen/lowlevel/xl/xl.c Tue Oct 05 14:19:13 2010 +0200
+++ b/tools/python/xen/lowlevel/xl/xl.c Tue Oct 05 15:26:24 2010 +0200
@@ -208,6 +208,11 @@
      return -1;
  }

+int attrib__uint64_t_ptr_set(PyObject *v, uint64_t * *pptr)
+{
+    return -1;
+}
+
  int attrib__libxl_cpumap_set(PyObject *v, libxl_cpumap *pptr)
  {
      return -1;
@@ -254,6 +259,11 @@
  }

  PyObject *attrib__libxl_cpuid_policy_list_get(libxl_cpuid_policy_list
*pptr)
+{
+    return NULL;
+}
+
+PyObject *attrib__uint64_t_ptr_get(uint64_t * *pptr)
  {
      return NULL;
  }

Because of using Reference(Uint64) directly in the idl - the python
bindings autogenerate these type-marshalling functions. It's not quite
clear how these are supposed to be implemented in a generic way! :)

There ought to be a builtin type for this ala libxl_uuid and other types
to generate correct bindings.

Gianni, I suppose I need a builtin for the complete libxl_cpumap type, not
only for the uint64_t array due to the size info which is needed to access
the array correctly.
I'm not sure how to translate this into the correct bindings. I think the
cpumap should be translated into a python list. Which methods do I need to
include in xc.c? Or would it be okay to add just some minimal dummy
functions and put in the functionality if needed?


Juergeb

--
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

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

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