[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: rename libxl_sched_params to libxl_domain_sched_params
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1338548779 -3600 # Node ID 648508ee27a22b724b8d2d636550af2c25a9a38a # Parent 7d15860d75abcb1e81982edaa1d0c2aacb4ef70c libxl: rename libxl_sched_params to libxl_domain_sched_params Remove credit scheduler global options from the struct, they were never used anyway. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r 7d15860d75ab -r 648508ee27a2 tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Fri Jun 01 12:06:18 2012 +0100 +++ b/tools/libxl/libxl_dom.c Fri Jun 01 12:06:19 2012 +0100 @@ -42,7 +42,8 @@ libxl_domain_type libxl__domain_type(lib return LIBXL_DOMAIN_TYPE_PV; } -int libxl__sched_set_params(libxl__gc *gc, uint32_t domid, libxl_sched_params *scparams) +int libxl__sched_set_params(libxl__gc *gc, uint32_t domid, + libxl_domain_sched_params *scparams) { libxl_ctx *ctx = libxl__gc_owner(gc); libxl_scheduler sched; diff -r 7d15860d75ab -r 648508ee27a2 tools/libxl/libxl_internal.h --- a/tools/libxl/libxl_internal.h Fri Jun 01 12:06:18 2012 +0100 +++ b/tools/libxl/libxl_internal.h Fri Jun 01 12:06:19 2012 +0100 @@ -742,7 +742,8 @@ _hidden libxl_domain_type libxl__domain_ _hidden int libxl__domain_shutdown_reason(libxl__gc *gc, uint32_t domid); _hidden int libxl__domain_cpupool(libxl__gc *gc, uint32_t domid); _hidden libxl_scheduler libxl__domain_scheduler(libxl__gc *gc, uint32_t domid); -_hidden int libxl__sched_set_params(libxl__gc *gc, uint32_t domid, libxl_sched_params *scparams); +_hidden int libxl__sched_set_params(libxl__gc *gc, uint32_t domid, + libxl_domain_sched_params *scparams); #define LIBXL__DOMAIN_IS_TYPE(gc, domid, type) \ libxl__domain_type((gc), (domid)) == LIBXL_DOMAIN_TYPE_##type typedef struct { diff -r 7d15860d75ab -r 648508ee27a2 tools/libxl/libxl_types.idl --- a/tools/libxl/libxl_types.idl Fri Jun 01 12:06:18 2012 +0100 +++ b/tools/libxl/libxl_types.idl Fri Jun 01 12:06:19 2012 +0100 @@ -224,11 +224,9 @@ libxl_domain_create_info = Struct("domai MemKB = UInt(64, init_val = "LIBXL_MEMKB_DEFAULT") -libxl_sched_params = Struct("sched_params",[ +libxl_domain_sched_params = Struct("domain_sched_params",[ ("weight", integer), ("cap", integer), - ("tslice_ms", integer), - ("ratelimit_us", integer), ("period", integer), ("slice", integer), ("latency", integer), @@ -263,7 +261,7 @@ libxl_domain_build_info = Struct("domain # extra parameters pass directly to qemu for HVM guest, NULL terminated ("extra_hvm", libxl_string_list), # parameters for all type of scheduler - ("sched_params", libxl_sched_params), + ("sched_params", libxl_domain_sched_params), ("u", KeyedUnion(None, libxl_domain_type, "type", [("hvm", Struct(None, [("firmware", string), diff -r 7d15860d75ab -r 648508ee27a2 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Fri Jun 01 12:06:18 2012 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri Jun 01 12:06:19 2012 +0100 @@ -635,10 +635,6 @@ static void parse_config_data(const char b_info->sched_params.weight = l; if (!xlu_cfg_get_long (config, "cap", &l, 0)) b_info->sched_params.cap = l; - if (!xlu_cfg_get_long (config, "tslice_ms", &l, 0)) - b_info->sched_params.tslice_ms = l; - if (!xlu_cfg_get_long (config, "ratelimit_us", &l, 0)) - b_info->sched_params.ratelimit_us = l; if (!xlu_cfg_get_long (config, "period", &l, 0)) b_info->sched_params.period = l; if (!xlu_cfg_get_long (config, "slice", &l, 0)) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |