diff options
author | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2010-10-21 18:36:22 +0100 |
---|---|---|
committer | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2010-10-21 18:36:22 +0100 |
commit | f66601c5629d5bd82797827a8f89dbdbcf410771 (patch) | |
tree | 2843c418af03c3f9bafb1409bcf3a91319b274e7 /tools/libxl/xl_cmdtable.c | |
parent | 18dd3dbdf2721c656676a15dac91eefb7b46e3cd (diff) | |
download | xen-f66601c5629d5bd82797827a8f89dbdbcf410771.tar.gz xen-f66601c5629d5bd82797827a8f89dbdbcf410771.tar.bz2 xen-f66601c5629d5bd82797827a8f89dbdbcf410771.zip |
tools: cpupools: xl: commands and library changes
Support of cpu pools in libxl and xl:
library functions
xl cpupool-create
xl cpupool-list
xl cpupool-destroy
xl cpupool-cpu-add
xl cpupool-cpu-remove
xl cpupool-migrate
Renamed all cpu pool related names to *cpupool*
Signed-off-by: juergen.gross@ts.fujitsu.com
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r-- | tools/libxl/xl_cmdtable.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c index 00d45c3ebc..285c84a41d 100644 --- a/tools/libxl/xl_cmdtable.c +++ b/tools/libxl/xl_cmdtable.c @@ -338,6 +338,41 @@ struct cmd_spec cmd_table[] = { "destroy a domain's version 2 virtual network device", "<Domain> <DevId>", }, + { "cpupool-create", + &main_cpupoolcreate, + "Create a CPU pool based an ConfigFile", + "[options] <ConfigFile> [vars]", + "-h, --help Print this help.\n" + "-f=FILE, --defconfig=FILE Use the given configuration file.\n" + "-n, --dryrun Dry run - prints the resulting configuration." + }, + { "cpupool-list", + &main_cpupoollist, + "List CPU pools on host", + "[-l|--long] [-c|--cpus] [<CPU Pool>]", + "-l, --long Output all CPU pool details.\n" + "-c, --cpus Output list of CPUs used by a pool" + }, + { "cpupool-destroy", + &main_cpupooldestroy, + "Deactivates a CPU pool", + "<CPU Pool>", + }, + { "cpupool-cpu-add", + &main_cpupoolcpuadd, + "Adds a CPU to a CPU pool", + "<CPU Pool> <CPU nr>", + }, + { "cpupool-cpu-remove", + &main_cpupoolcpuremove, + "Removes a CPU from a CPU pool", + "<CPU Pool> <CPU nr>", + }, + { "cpupool-migrate", + &main_cpupoolmigrate, + "Moves a domain into a CPU pool", + "<Domain> <CPU Pool>", + }, }; int cmdtable_len = sizeof(cmd_table)/sizeof(struct cmd_spec); |