aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/public/domctl.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-04-14 12:07:21 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-04-14 12:07:21 +0100
commit0dd76d3d20a503af84637e495924965a4b122033 (patch)
treedee65b93d982afeae0dc3ca9c2f2a42daa876c57 /xen/include/public/domctl.h
parent13a24225fb29b8eaca6ef8489ceb85bff3b9e385 (diff)
downloadxen-0dd76d3d20a503af84637e495924965a4b122033.tar.gz
xen-0dd76d3d20a503af84637e495924965a4b122033.tar.bz2
xen-0dd76d3d20a503af84637e495924965a4b122033.zip
credit2: Add credit2 scheduler to hypervisor
This is the core credit2 patch. It adds the new credit2 scheduler to the hypervisor, as the non-default scheduler. It should be emphasized that this is still in the development phase, and is probably still unstable. It is known to be suboptimal for multi-socket systems. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/include/public/domctl.h')
-rw-r--r--xen/include/public/domctl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h
index 6d00a84df5..7ff84abccf 100644
--- a/xen/include/public/domctl.h
+++ b/xen/include/public/domctl.h
@@ -303,6 +303,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_max_vcpus_t);
/* Scheduler types. */
#define XEN_SCHEDULER_SEDF 4
#define XEN_SCHEDULER_CREDIT 5
+#define XEN_SCHEDULER_CREDIT2 6
/* Set or get info? */
#define XEN_DOMCTL_SCHEDOP_putinfo 0
#define XEN_DOMCTL_SCHEDOP_getinfo 1
@@ -321,6 +322,9 @@ struct xen_domctl_scheduler_op {
uint16_t weight;
uint16_t cap;
} credit;
+ struct xen_domctl_sched_credit2 {
+ uint16_t weight;
+ } credit2;
} u;
};
typedef struct xen_domctl_scheduler_op xen_domctl_scheduler_op_t;