All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: Gianni Tedesco <gianni.tedesco@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 2 of 3] support of cpupools in xl: commands and library changes
Date: Fri, 08 Oct 2010 10:41:07 +0200	[thread overview]
Message-ID: <4CAED923.1040900@ts.fujitsu.com> (raw)
In-Reply-To: <1286372869.12843.62.camel@qabil.uk.xensource.com>

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@ts.fujitsu.com
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

  reply	other threads:[~2010-10-08  8:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 13:45 [PATCH 0 of 3] support of cpupools in xl Juergen Gross
2010-10-05 13:45 ` [PATCH 1 of 3] To be able to support arbitrary numbers of physical cpus it was necessary to Juergen Gross
2010-10-06 11:21   ` Stefano Stabellini
2010-10-06 13:41     ` Ian Campbell
2010-10-08  8:03       ` Juergen Gross
2010-10-06 13:26   ` Ian Campbell
2010-10-05 13:45 ` [PATCH 2 of 3] support of cpupools in xl: commands and library changes Juergen Gross
2010-10-06 13:31   ` Ian Campbell
2010-10-06 13:47   ` Gianni Tedesco
2010-10-08  8:41     ` Juergen Gross [this message]
2010-10-08  8:52       ` Ian Campbell
2010-10-08  9:21         ` Gianni Tedesco
2010-10-05 13:45 ` [PATCH 3 of 3] add example cpupool config file Juergen Gross
2010-10-06 11:25   ` Stefano Stabellini
  -- strict thread matches above, loose matches on Subject: below --
2010-10-08 11:23 [PATCH 0 of 3] support of cpupools in xl Juergen Gross
2010-10-08 11:23 ` [PATCH 2 of 3] support of cpupools in xl: commands and library changes Juergen Gross
2010-10-12  9:51   ` Ian Jackson
2010-10-12  9:56     ` Juergen Gross
2010-10-12  9:59     ` Ian Campbell
2010-10-12 10:43       ` Juergen Gross
2010-10-12  9:56   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CAED923.1040900@ts.fujitsu.com \
    --to=juergen.gross@ts.fujitsu.com \
    --cc=gianni.tedesco@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.