search for: auto_autoballoon

Displaying 1 result from an estimated 1 matches for "auto_autoballoon".

2013 Apr 04
3
[PATCH] xl: extend autoballoon xl.conf option with an "auto" option
...7be 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -47,6 +47,24 @@ enum output_format default_output_format = OUTPUT_FORMAT_JSON; static xentoollog_level minmsglevel = XTL_PROGRESS; +/* Default autoballoon value based on presence of dom0_mem Xen command + line option. */ +static int auto_autoballoon(void) +{ + const libxl_version_info *info; + + info = libxl_get_version_info(ctx); + if (!info) { + fprintf(stderr, "libxl_get_version_info failed.\n"); + return 1; /* default to autoballooning */ + } + + if (strstr(info->commandline, "dom0_mem"))...