From b5b79a12c41b5e76af9d47551027b56f210d9029 Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Wed, 17 Apr 2013 10:57:32 +0000 Subject: xen: allow for explicitly specifying node-affinity Make it possible to pass the node-affinity of a domain to the hypervisor from the upper layers, instead of always being computed automatically. Note that this also required generalizing the Flask hooks for setting and getting the affinity, so that they now deal with both vcpu and node affinity. Signed-off-by: Dario Faggioli Acked-by: Daniel De Graaf Acked-by: George Dunlap Acked-by: Juergen Gross Acked-by: Keir Fraser --- xen/common/schedule.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xen/common/schedule.c') diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 7364ff8a7d..c1cd3d0f15 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -638,6 +638,11 @@ int cpu_disable_scheduler(unsigned int cpu) return ret; } +void sched_set_node_affinity(struct domain *d, nodemask_t *mask) +{ + SCHED_OP(DOM2OP(d), set_node_affinity, d, mask); +} + int vcpu_set_affinity(struct vcpu *v, const cpumask_t *affinity) { cpumask_t online_affinity; -- cgit v1.2.3