[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
- To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
- From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
- Date: Tue, 12 Nov 2013 16:43:01 +0000
- Cc: Marcus Granado <Marcus.Granado@xxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>, Li Yechen <lccycc123@xxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, Dario Faggioli <dario.faggioli@xxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxx, Jan Beulich <JBeulich@xxxxxxxx>, Justin Weaver <jtweaver@xxxxxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, Matt Wilson <msw@xxxxxxxxxx>, Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>, Elena Ufimtseva <ufimtseva@xxxxxxxxx>
- Delivery-date: Tue, 12 Nov 2013 16:43:27 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|