|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RESEND 09/12] libxc: numa-sched: enable getting/specifying per-vcpu node-affinity
George Dunlap <george.dunlap@xxxxxxxxxxxxx> wrote:
>On 11/12/2013 04:01 PM, Konrad Rzeszutek Wilk wrote:
>> On Tue, Nov 05, 2013 at 03:35:42PM +0100, Dario Faggioli wrote:
>>> by providing the proper get/set interfaces and wiring them
>>> to the new domctl-s from the previous commit.
>>
>> s/previous commit/<title of the commit>/
>>
>>>
>>> Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
>>> ---
>>> tools/libxc/xc_domain.c | 82
>+++++++++++++++++++++++++++++++++++++++++++++++
>>> tools/libxc/xenctrl.h | 19 +++++++++++
>>> 2 files changed, 101 insertions(+)
>>>
>>> diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
>>> index f8825a3..e44ad2e 100644
>>> --- a/tools/libxc/xc_domain.c
>>> +++ b/tools/libxc/xc_domain.c
>>> @@ -272,6 +272,88 @@ out:
>>> return ret;
>>> }
>>>
>>> +int xc_vcpu_setnodeaffinity(xc_interface *xch,
>>> + uint32_t domid,
>>> + int vcpu,
>>> + xc_nodemap_t nodemap)
>>> +{
>>> + DECLARE_DOMCTL;
>>> + DECLARE_HYPERCALL_BUFFER(uint8_t, local);
>>> + int ret = -1;
>>
>> Ewww.. Could we just use regular -Exx for new xc_* calls?
>
>I think the standard (which Dario is just following here) is to return
>-1 and set errno. Since the failures are all after making calls to
>other xc functions, they should be setting errno properly, and we
>should
>be able to just leave it.
>
> -George
I recall some discussion with Ian Campbell where he expressed frustration with
the return -1. I thought we wanted to stamp these out going forward?
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |