[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Patch][resend] implementation of cpupool support in xl


  • To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Wed, 15 Sep 2010 13:28:05 +0200
  • Cc:
  • Delivery-date: Wed, 15 Sep 2010 04:29:14 -0700
  • 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:Subject:References:In-Reply-To: Content-Type; b=hu9bCpekVJ8tHOXnnukVn2LsKRirZkwG2sNyC2KyIp33kJgspPTgF25+ gJGUeE0AR9FCv9Pna/cotYIpWun/C+3oSRaMVt7FqJiVLC+vtxE8+cqaL t9mpOumSODuUOlrOyoIjLqPEEkpAahFk7Ozt94a07sp4qrfrtKIMbiGAc 85Wmwgv4D1Ie3l7g9AkyOydnRjlU6YRAeov9gwbl/KueAQPkIo021JmON /BiA9dJGNTXeyi7+WdUp9dWVB9t71;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 09/15/10 12:22, Ian Campbell wrote:
On Wed, 2010-09-15 at 10:37 +0100, Ian Campbell wrote:
On Wed, 2010-09-15 at 10:23 +0100, Juergen Gross wrote:

And I'm not sure I'll get the generating of the bindings correctly.
So yes, please do it!

Will do.

> From looking at your patch it seems that the intention is that the size
is the number of bytes in the map, rather than the number of CPUs which
can be represented or the number of uint64_t's, is that right and/or
what you would like to use?

Seems like libxc counts bytes but libxl (with your patch) counts 64 bit
words.

There doesn't seem to be any users of the size currently so I went with
bytes in the below (compile tested + examined generated code only) but
since your patch adds the first actual user feel free to change it if
that makes the libxl interface more suitable for your needs or whatever.

Thanks, updated patch is attached.
I didn't add the destructor, because this would have made things much more
complicated as libxl_list_pool returns an array of libxl_poolinfo elements.
Doing only one free() at caller side is much easier than cycling through
the elements and free-ing all extra allocated cpumaps.


Juergen

--
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

Attachment: xl-pools.patch
Description: Text Data

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.