aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2011-04-27 13:36:15 +0100
committerGeorge Dunlap <george.dunlap@eu.citrix.com>2011-04-27 13:36:15 +0100
commitff38d3faa7d0e1734237e81c2fea95e18c510dcd (patch)
tree7589a305a45183a0eb2b2ba61dbd91276a6dd17f /xen/include/xen/sched-if.h
parent9841d94c95bf97c3cd3c9ca14170fc88dc3b8305 (diff)
downloadxen-ff38d3faa7d0e1734237e81c2fea95e18c510dcd.tar.gz
xen-ff38d3faa7d0e1734237e81c2fea95e18c510dcd.tar.bz2
xen-ff38d3faa7d0e1734237e81c2fea95e18c510dcd.zip
credit2: add a callback to migrate to a new cpu
In credit2, there needs to be a strong correlation between v->processor and the runqueue to which a vcpu is assigned; much of the code relies on this invariant. Allow credit2 to manage the actual migration itself. This fixes the most recent credit2 bug reported on the list (Xen BUG at sched_credit2.c:1606) in Xen 4.1, as well as the bug at sched_credit2.c:811 in -unstable (which catches the same condition earlier). Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index 486b9fd704..a03ceb1552 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -170,6 +170,8 @@ struct scheduler {
bool_t tasklet_work_scheduled);
int (*pick_cpu) (const struct scheduler *, struct vcpu *);
+ void (*migrate) (const struct scheduler *, struct vcpu *,
+ unsigned int);
int (*adjust) (const struct scheduler *, struct domain *,
struct xen_domctl_scheduler_op *);
int (*adjust_global) (const struct scheduler *,