[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH 1/3] credit2: libxc related changes to add support for runqueue per cpupool.
- To: anshul <anshulmakkar@xxxxxxxxx>, Dario Faggioli <dario.faggioli@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxx
- From: Juergen Gross <jgross@xxxxxxxx>
- Date: Thu, 17 Jan 2019 17:17:07 +0100
- Autocrypt: addr=jgross@xxxxxxxx; prefer-encrypt=mutual; keydata= xsBNBFOMcBYBCACgGjqjoGvbEouQZw/ToiBg9W98AlM2QHV+iNHsEs7kxWhKMjrioyspZKOB ycWxw3ie3j9uvg9EOB3aN4xiTv4qbnGiTr3oJhkB1gsb6ToJQZ8uxGq2kaV2KL9650I1SJve dYm8Of8Zd621lSmoKOwlNClALZNew72NjJLEzTalU1OdT7/i1TXkH09XSSI8mEQ/ouNcMvIJ NwQpd369y9bfIhWUiVXEK7MlRgUG6MvIj6Y3Am/BBLUVbDa4+gmzDC9ezlZkTZG2t14zWPvx XP3FAp2pkW0xqG7/377qptDmrk42GlSKN4z76ELnLxussxc7I2hx18NUcbP8+uty4bMxABEB AAHNHkp1ZXJnZW4gR3Jvc3MgPGpncm9zc0BzdXNlLmRlPsLAeQQTAQIAIwUCU4xw6wIbAwcL CQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAAAoJELDendYovxMvi4UH/Ri+OXlObzqMANruTd4N zmVBAZgx1VW6jLc8JZjQuJPSsd/a+bNr3BZeLV6lu4Pf1Yl2Log129EX1KWYiFFvPbIiq5M5 kOXTO8Eas4CaScCvAZ9jCMQCgK3pFqYgirwTgfwnPtxFxO/F3ZcS8jovza5khkSKL9JGq8Nk czDTruQ/oy0WUHdUr9uwEfiD9yPFOGqp4S6cISuzBMvaAiC5YGdUGXuPZKXLpnGSjkZswUzY d9BVSitRL5ldsQCg6GhDoEAeIhUC4SQnT9SOWkoDOSFRXZ+7+WIBGLiWMd+yKDdRG5RyP/8f 3tgGiB6cyuYfPD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u/z W2pf7+P3mWWlrPMJdlbax00vevyBeqtqNKjHstHatgMZ2W0CFC4hJ3YEetuRBURYPiGzuJXU pAd7a7BdsqWC4o+GTm5tnGrCyD+4gfDSpkOT53S/GNO07YkPkm/8J4OBoFfgSaCnQ1izwgJQ jIpcG2fPCI2/hxf2oqXPYbKr1v4Z1wthmoyUgGN0LPTIm+B5vdY82wI5qe9uN6UOGyTH2B3p hRQUWqCwu2sqkI3LLbTdrnyDZaixT2T0f4tyF5Lfs+Ha8xVMhIyzNb1byDI5FKCb
- Cc: George.Dunlap@xxxxxxxxxxxxx, wei.liu2@xxxxxxxxxx, ian.jackson@xxxxxxxxxxxxx, jbeulich@xxxxxxxx
- Delivery-date: Thu, 17 Jan 2019 16:17:14 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Openpgp: preference=signencrypt
On 17/01/2019 17:10, anshul wrote:
>
> On 14/09/2017 13:58, Dario Faggioli wrote:
>> On Thu, 2017-09-14 at 08:42 +0200, Juergen Gross wrote:
>>>> --- a/tools/libxc/include/xenctrl.h
>>>> +++ b/tools/libxc/include/xenctrl.h
>>>> @@ -1077,17 +1077,21 @@ typedef struct xc_cpupoolinfo {
>>>> #define XC_CPUPOOL_POOLID_ANY 0xFFFFFFFF
>>>> +typedef xen_sysctl_sched_param_t xc_schedparam_t;
>>>> +
>>>> /**
>>>> * Create a new cpupool.
>>>> *
>>>> * @parm xc_handle a handle to an open hypervisor interface
>>>> * @parm ppoolid pointer to the new cpupool id (in/out)
>>>> * @parm sched_id id of scheduler to use for pool
>>>> + * @parm sched_param parameter of the scheduler of the cpupool eg.
>>>> runq for credit2
>>> I would drop "eg. runq for credit2"
>>>
>> +1
>>
>>>> --- a/tools/python/xen/lowlevel/xc/xc.c
>>>> +++ b/tools/python/xen/lowlevel/xc/xc.c
>>>> @@ -1704,6 +1704,7 @@ static PyObject *pyxc_cpupool_create(XcObject
>>>> *self,
>>>> PyObject *kwds)
>>>> {
>>>> uint32_t cpupool = XC_CPUPOOL_POOLID_ANY, sched =
>>>> XEN_SCHEDULER_CREDIT;
>>>> + xc_schedparam_t param;
>>>> static char *kwd_list[] = { "pool", "sched", NULL };
>>> [..]
>>> Another possibility would be to drop the cpupool python bindings
>>> completely (which I would prefer, TBH).
>>>
>> +1
> Juergen, please can you clarify on this. Do you mean that I should
> remove the
>
> complete cpupool handling from python APIs i.e remove all of pyxc_cpupool_*
>
> APIs .
Yes.
> Also, it was some time back when I floated this patch. Does the
> requirement to remove cpupool python bindings
>
> still holds.
Its not a requirement, but a suggestion.
There are hardly any users of the Python bindings and as far as we know
none of them is using them for cpupool handling.
So instead of adapting them to interface modifications removing them
seems to be the better option.
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|