aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-11-06 11:03:04 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-11-06 11:03:04 +0000
commit1ad5dad74cdec8818fa47c6b6c8652d532fb87c8 (patch)
tree391e9a242988b98c0d4357034ec57081079ff13f /xen/include/xen/sched-if.h
parent5c445c2f6dbd4e48712a5b6298c56df45f1ff158 (diff)
downloadxen-1ad5dad74cdec8818fa47c6b6c8652d532fb87c8.tar.gz
xen-1ad5dad74cdec8818fa47c6b6c8652d532fb87c8.tar.bz2
xen-1ad5dad74cdec8818fa47c6b6c8652d532fb87c8.zip
[XEN] Re-jig VCPU initialisation -- VMX init requires generic VCPU
fields to already be allocated. This has led to a general cleanup of domain and vcpu initialisation and destruction. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index dc3b04fa22..410358cc48 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -63,9 +63,12 @@ struct scheduler {
void (*init) (void);
void (*tick) (unsigned int cpu);
- int (*init_vcpu) (struct vcpu *);
+ int (*init_domain) (struct domain *);
void (*destroy_domain) (struct domain *);
+ int (*init_vcpu) (struct vcpu *);
+ void (*destroy_vcpu) (struct vcpu *);
+
void (*sleep) (struct vcpu *);
void (*wake) (struct vcpu *);