aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/sched_sedf.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-07-05 14:27:27 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-07-05 14:27:27 +0100
commitecf0bebefa3b4ea160d99541bf15b5c47b82cca2 (patch)
tree9516cee6e8e388a86bc3ef5c5b3d9f5f5a6cd660 /xen/common/sched_sedf.c
parent78c851da094c02e0b9d8bb8b36a746bb3ce2d63e (diff)
downloadxen-ecf0bebefa3b4ea160d99541bf15b5c47b82cca2.tar.gz
xen-ecf0bebefa3b4ea160d99541bf15b5c47b82cca2.tar.bz2
xen-ecf0bebefa3b4ea160d99541bf15b5c47b82cca2.zip
[XEN] Separate domain creation from vcpu creation.
Creating a domain no longer creates vcpu0 -- that is now done later. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/sched_sedf.c')
-rw-r--r--xen/common/sched_sedf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c
index 7b42062729..6e90343899 100644
--- a/xen/common/sched_sedf.c
+++ b/xen/common/sched_sedf.c
@@ -1429,6 +1429,8 @@ static int sedf_adjdom(struct domain *p, struct sched_adjdom_cmd *cmd)
}
else if ( cmd->direction == SCHED_INFO_GET )
{
+ if ( p->vcpu[0] == NULL )
+ return -EINVAL;
cmd->u.sedf.period = EDOM_INFO(p->vcpu[0])->period;
cmd->u.sedf.slice = EDOM_INFO(p->vcpu[0])->slice;
cmd->u.sedf.extratime = EDOM_INFO(p->vcpu[0])->status & EXTRA_AWARE;