aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxlu_internal.h
Commit message (Collapse)AuthorAgeFilesLines
* libxlu: Rename filename to config_sourceGeorge Dunlap2012-05-151-1/+1
| | | | | | | | | | | | | | The "filename" is a bit of a misnomer, as it's only used during error messages, and in most instances cases is actually set to "command line". Rename it to "config_source" to make it clear that it's not used to actually open any files. No functional changes. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* xl: add support for vif rate limitingMathieu Gagne2012-04-241-0/+2
| | | | | | | | | | | | | | | | | | | | | The `rate` keyword specifies the rate at which the outgoing traffic will be limited to. The default if this keyword is not specified is unlimited. The `rate` keyword supports an optional replenishment interval parameter for specifying the granularity of credit replenishment. It determines the frequency at which the vif transmission credit is replenished. The default interval is 50ms. For example: 'rate=10Mb/s' 'rate=250KB/s' 'rate=1MB/s@20ms' Signed-off-by: Mathieu Gagne <mgagne@iweb.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.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: provide TOSTRING in libxl_internal.h and libxlu_internal.hIan Jackson2011-06-021-0/+4
| | | | | | | | | | | | | | Provide a copy of the standard TOSTRING macro in libxlu_internal.h, for the benefit of patches later in this series. Also, move TOSTRING to libxl_internal.h from a .c file for the benefit of future other callers in libxl proper. (These cannot be combined because libxlu cannot include libxl_internal.h and libxl should not include libxlu_internal.h.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* libxl: config parser: print warning for apparent arbitrary pythonIan Jackson2011-01-111-1/+1
| | | | | | | | | | | | | | | | The characters - + . ( ) : are not legal in xl config files but are valid Python and use of at least one of them is almost essential for writing arbitrary Python in the config file. So if we see one of these during lexing, note it, and then after the parse is complete if it failed we print a special extra warning. Currently this warning refers to the nonexistent wiki page http://wiki.xen.org/xenwiki/PythonInXlConfig which will have to be written (and/or given a better name) before the actual 4.1 release. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Replace config file parser for "xl"Keir Fraser2010-03-031-0/+48
This provides a replacement config file parser for "xl" based on bison and flex. Benefits: * proper error reporting with line numbers * parser can understand nearly all "xm" configuration files directly (doesn't understand Python code but should do everything else) * parser also understands the ;-infested "xl" style files * removes the dependency on libconfig * better checking for certain kinds of mistakes * eliminates the strange "massage file and try again" code This is intended to support all config files currently supported by "xl" and almost all files supported by "xm". (NB that whether a feature works depends on the implementation of that feature in xl/libxl of course.) This patch also introduces a new library "libxlutil" which is mainly for the benefit of "xl". Users of libxl do not need to use libxlutil, but they can do so if they want to parse "xl" files without being "xl". Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>