aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl_cmdtable.c
Commit message (Collapse)AuthorAgeFilesLines
* xl: xl network-attach -N (dry run) optionMathieu Gagne2012-04-171-1/+1
| | | | | | | | Add dryrun for testing and debugging purposes. Signed-off-by: Mathieu Gagne <mgagne@iweb.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xl: provide a command to set the saved configuration for a running domainIan Campbell2012-04-021-0/+9
| | | | | | | Pickup this new configuration on reboot. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* xl: Implement sched-credit schedule parameter command-line interfaceGeorge Dunlap2012-03-141-5/+8
| | | | | | | | | Add features to the sched-credit interface to allow querying and displaying scheduler parameters. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xl: fix xl create/cpupool-create -f help outputOlaf Hering2012-02-201-2/+2
| | | | | | | | xl create -f domU.cfg does not need an equal sign. This applies also to xl cpupool-create. Signed-off-by: Olaf Hering <olaf@aepfle.de> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xl: Add -F to usage for xl shutdown/rebootIan Campbell2012-02-131-2/+9
| | | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Tools: Add a sharing command to xl for information about shared pagesAndres Lagar-Cavilla2012-01-261-0/+5
| | | | | | | | | | | Also add the global sharing statistics to the libxl physinfo. This is a slight departure from libxc, but there's no reason libxl physinfo can't include extra bits of useful and relevant information. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Signed-off-by: Adin Scannell <adin@scannell.ca> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Tim Deegan <tim@xen.org>
* xl: Add missing trigger for the xl trigger cmd.Jean Guyader2012-01-241-1/+1
| | | | | | | | Add s3resume trigger in the usage of the xl trigger cmd. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Support of xl sched-sedfJuergen Gross2011-11-281-0/+16
| | | | | | | | | | | | Supports the xl subcommand sched-sedf. The man page is only a minimal version (copy from xm man page without examples). BTW: the xm man page seems not to be in sync with xm sched-sedf -h regarding the time units. I used milliseconds in the xl implementation. Only minimal semantical checks of parameters. Signed-off-by: juergen.gross@ts.fujitsu.com Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* Support of xl sched-credit2Juergen Gross2011-11-281-0/+8
| | | | | | | | Supports the xl subcommand sched-credit2. Signed-off-by: juergen.gross@ts.fujitsu.com Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* Support cpupools in xl sched-creditJuergen Gross2011-11-281-2/+3
| | | | | | | | | | | | | Adds cpupool awareness to output of xl sched-credit. Output can now be restricted to a specific cpupool. The domains are printed for each cpupool seperately. The loop over cpupools and domains is seperated from the main command implementation to be able to support other schedulers as well. Signed-off-by: juergen.gross@ts.fujitsu.com Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
* libxl: fixup incorrect indentationIan Campbell2011-10-121-0/+8
| | | | | | | | | Several places which were previsously indented using hard tabs are now incorrectly indented. Fix them up. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl: clean up trailing whitespaces in code.Wei Liu2011-07-191-2/+2
| | | | | | | | | Commit exactly the results of running find \! -iname '*.txt' -type f -print0 | xargs -0 perl -p -i.bak -E 's/\s+\n/\n/' Signed-off-by: Wei Liu <liuw@liuw.name> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed: Ian Jackson <ian.jackson@eu.citrix.com>
* xl: xl block-attach -N (dry run) optionIan Jackson2011-06-281-1/+1
| | | | | Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* xl: implement -N (dry run) global option for create and cpupool-createIan Jackson2011-06-281-4/+6
| | | | | | | | These subcommands already had "-n" dry run options. Make -N do the same thing, and deprecate those -n options. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* xl: new global -N option for dry runIan Jackson2011-06-281-62/+62
| | | | | | | | | | This sets a global dryrun_only variable, which individual commands are expected to honour. To avoid accidents, we introduce a new can_dryrun member in the command table, which is initially set to 0 for each command. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* xl: disks: replace block-attach disk config parser with call to xlu_parse_diskIan Jackson2011-06-281-1/+1
| | | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* libxl: flask xsm supportMachon Gregory2011-06-021-1/+17
| | | | | | | | | | Adds support for assigning a label to domains, obtaining and setting the current enforcing mode, and loading a policy with xl command and libxl header when the Flask XSM is in use. Adheres to the changes made by the patch to remove exposure of libxenctrl/libxenstore headers via libxl.h. Signed-Off-By: Machon Gregory <mbgrego@tycho.ncsc.mil> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl/xl: drop support for netchannel2Ian Campbell2011-04-081-18/+0
| | | | | | | | | | | | | | | | | netchannel2 was never widely deployed and no supported kernel includes either the front- or back-ends. The last known kernel with this support was the xen.git 2.6.31 branch which has been unsupported for ages. xl will warn the user if it spots a "vif2" configration item but otherwise support is completely removed. Work is ongoing to add the interesting features of netchannel2 as protocol extensions to netchannel1. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xl: remove unimplemented -l stub for cpupool-listAndre Przywara2011-01-281-2/+1
| | | | | | | | | | | | Although advertised via the usage output, xl cpupool-list -l just returns ERROR_NI, which does not show up on the console. Instead the output is empty, which is not exactly what --long hints to. To avoid confusion remove the line from the help output and just ignore the -l option properly until it gets finally implemented. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Support new xl command cpupool-numa-splitJuergen Gross2010-12-091-0/+5
| | | | | | | | | New xl command cpupool-numa-split which will create one cpupool for each numa node of the machine. Can be called only if no other cpupools than Pool 0 are defined. After creation the cpupools can be managed as usual. Signed-off-by: juergen.gross@ts.fujitsu.com Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* Support renaming of cpupoolsJuergen Gross2010-12-091-0/+5
| | | | | | | | Add a new library function libxl_cpupool_rename() and a new xl command xl cpupool-rename to support renaming of cpupools. Signed-off-by: juergen.gross@ts.fujitsu.com Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* Extend cpupools to support numaJuergen Gross2010-12-091-2/+2
| | | | | | | | | | | | | | | | | | The user interfaces for cpupools are extended to support numa machines: - xl cpupool-create supports now specifying a node list instead of a cpu list. The new cpupool will be created with all free cpus of the specified numa nodes. - xl cpupool-cpu-remove and xl cpupool-cpu-add can take a node number instead of a cpu number. Using 'node:1' for the cpu parameter will, depending on the operation, either remove all cpus of node 1 in the specified cpupool, or add all free cpus of node 1 to the cpupool. libxl is extended with the following functions to support this feature: int libxl_cpupool_cpuadd_node(libxl_ctx *ctx, uint32_t poolid, int node, int *cpus) int libxl_cpupool_cpuremove_node(libxl_ctx *ctx, uint32_t poolid, int node, int *cpus) Signed-off-by: juergen.gross@ts.fujitsu.com Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* support topolgy info in xl infoJuergen Gross2010-12-091-1/+1
| | | | | | | | | Adds option -n/--numa to xl info command to print topology information. No numa information up to now, as I've no machine which will give this info via xm info (could be a bug in xm, however). Signed-off-by: juergen.gross@ts.fujitsu.com Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
* tools: cpupools: xl: commands and library changesJuergen Gross2010-10-211-0/+35
| | | | | | | | | | | | | | | 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>
* xl: correct argument parsing for some sub-commands.Ian Campbell2010-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | XL sub-commands are expected to parse their arguments relative to the global variable "optind" rather than treating argc+argv as zero based. This is because the argc+argv passed to sub-commands include the entire original command line, not just the sub command specific bits. Not all commands do this and they are therefore broken if the user uses "xl -v command", correct such problems dump-core: - did not handle "-h" option. {network,network2,block}-{attach,list,detach} : - handled arguments without reference to optind - checked number of arguments before processing getopt loop, breaking "-h" option handling An example of the breakage: # xl -v block-list d32-2 Vdev BE handle state evt-ch ring-ref BE-path block-list is an invalid domain identifier 51712 0 1 4 13 8 /local/domain/0/backend/vbd/1/ Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: xenconsole[d] and libxl: multiple console supportStefano Stabellini2010-08-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements the new protocol for handling pv consoles and emulated serials as described in the document docs/misc/console.txt. The changes are: - xenconsoled: do not write the pty under serial in xenstore if xenconsoled is handling a consolepath; - xenconsole: implement support for an explicit console type parameter; the parameter can be "pv", to specify that the user wants to connect to a pv console, or "serial", to specify that the user wants to connect to an emulated serial. If the type parameter hasn't been specified be the user, xenconsole tries to guess which type of console it has to connect to, defaulting to pv console for pv guests and emulated serial for hvm guests. - xenconsole: use the new xenstore paths; - libxl: rename libxl_console_constype to libxl_console_consback: constype is used to to specify whether qemu or xenconsoled provides the backend, so I renamed it to libxl_console_consback to make it more obvious that we are talking about backends; - libxl: add a new libxl_console_constype to specify if the console is an emulated serial or a pv console; - libxl: support the new xenconsole "type" command line parameter; - libxl: use the "output" node under console in xenstore to tell qemu where do we want the output of this pv console to go; - remove the legacy "serialpath" from xenconsoled altogether Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Also: update the QEMU_TAG to pull in the qemu part of these changes. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* formatting of "# xl list -h" is off (due to missing \n)Stefano Stabellini2010-08-091-2/+2
| | | | | Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xl: remove duplicate -d option from create help messageZhigang Wang2010-07-301-1/+0
| | | | | Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl: Check whether a PCI device is assignable before assigning it do a domUGianni Tedesco2010-07-291-0/+5
| | | | | | | | | | | | | | Implement a new libxl function libxl_device_pci_list_assignable. This is used to implement the xl list-assignable-pci-devices command and part of the implementation is used to make sure that PCI devices are not multiply assigned to one or more domU's before doing the passthrough assignment. The function libxl_device_pci_list changes to libxl_device_pci_list_assigned due to a parameter change for consistency with pci_list_assignable. Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* libxl: consistently use typedef struct {} libxl_$typeIan Campbell2010-07-281-0/+1
| | | | | | | | typedef struct seems to be the dominant idiom in the mixture currently in use. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* implement xl vncviewerStefano Stabellini2010-07-201-0/+8
| | | | | | | | Implement xl vncviewer. The only difference from xm vncviewer is that we obey the VNCVIEWER environment variable. Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* Implement xl dump-coreStefano Stabellini2010-07-191-0/+5
| | | | | | | Implements dump-core command which is similar to xm dump-core except that it requires an additional argument which is the target filename. Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
* Implement "xl tmem-freeable" to match "xm tmem-freeable".Stefano Stabellini2010-07-191-0/+5
| | | | Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* this patch implements few missing options in xl so that it can beStefano Stabellini2010-06-221-6/+12
| | | | | | | | | | | | | | | | | | used as a replacement of xm in xendomains: - dryrun and quiet, long options to xl create; - l, option to xl list. printf_info is now used to print the configuration of the running VMs so the output has been reformatted to be similar to the output of xm list -l. There is still one command used in xendomains that is not implemented in xl and not covered by this patch: xm shutdown. However a patch has been sent to the list in the past and we are expecting a new version of it soon. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
* xl: fix command truncationKeir Fraser2010-06-211-6/+7
| | | | | | | | Fix the truncation code so that it always accepts an exact match, even when one command is a prefix of another one. This fixes, e.g., "xl list" Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* xl: allow truncation of xl subcommandsKeir Fraser2010-06-181-0/+23
| | | | | | for those of us who are used to typing "xm cr foo" Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* xl: network2-detach commandKeir Fraser2010-06-071-0/+5
| | | | | | Usage: xl network2-detach <Domain> <DevId> Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
* xl: network2-list commandKeir Fraser2010-06-071-0/+5
| | | | | | Usage: xl network2-list <Domains> Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
* xl: network2-attach commandKeir Fraser2010-06-071-0/+8
| | | | | | | | | | Usage: xl network2-attach <Domain> [front_mac=<mac>] [back_mac=<mac>] [backend=<BackDomain>] [trusted=<0|1>] [back_trusted=<0|1>] [bridge=<bridge>] [filter_mac=<0|1>] [front_filter_mac=<0|1>] [pdev=<PDEV>] [max_bypasses=n] Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>
* xl: make mem-set and mem-max to use MB for memory unit by default.Keir Fraser2010-06-071-2/+2
| | | | Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
* xl: adds shutdown and reboot commandsKeir Fraser2010-06-021-0/+10
| | | | | | libxl : remote shutdown to work for pure hvm domains Signed-off-by: Gihan Munasinghe <GMunasinghe@flexiant.com>
* xl: Combine headers into one header file.Keir Fraser2010-05-281-1/+1
| | | | | | | This provides a single place to put declarations of external symbols etc. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* xl: Some small fixesKeir Fraser2010-05-261-8/+4
| | | | | | | | | | | | | | - When use mem-set, I got suspicious error output: # xl mem-set 1 256g setting domid 1 memory to : 268435456 [0] libxl.c:2535:libxl_set_memory_target: memory_dynamic_max must be less than or equal to memory_static_max : Success - String generated by strdup() should be freed - When using 'xl help', mem-max and mem-set's output is not as intend, and it also breaks bash completion, fix it. Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
* xl: Add subcommand 'xl dmesg'Keir Fraser2010-05-261-0/+6
| | | | | | Can be used to read and/or clear dmesg buffer. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
* xl: fix block-attach command parsingKeir Fraser2010-05-211-1/+1
| | | | | | | | | | | Fix two command-line parsing problems: - the argc check is wrong: it must be provided with the frontend device - the ro/rw mode is optional, so default to rw if it is absent Also, update the usage message accordingly. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
* xl: Add subcommand "xl debug-keys"Keir Fraser2010-05-191-0/+5
| | | | | | Can be used to send debug keys to Xen. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
* libxl: Add tmem support commandsKeir Fraser2010-05-191-0/+42
| | | | Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
* xl: allow scaling suffix on memory sizes in mem-set and mem-maxKeir Fraser2010-05-181-2/+6
| | | | | | | | | Allow mem-set and mem-max to take 'b', 'k', 'm', 'g' and 't' as scaling suffixes for bytes, kilobytes, mega, etc. An unadorned number is still treated as kilobytes so no existing users should be affected. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xl: Add "xl uptime" command, a clone of "xm uptime".Keir Fraser2010-05-141-0/+5
| | | | Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
* xl: Implement block-detach commandKeir Fraser2010-05-131-0/+5
| | | | Signed-off-by: Eric Chanudet <eric.chanudet@citrix.com>