From: Keir Fraser Date: Fri, 4 Jun 2010 09:13:02 +0000 (+0100) Subject: xl: enable hap, parse hap option in the config files X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12020 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=88d60e45efe7fd60acb59ce8a9adc57b455d628e;p=xen.git xl: enable hap, parse hap option in the config files This simple patch enables hap by default in xl and also allows xl to parse the hap option in the VM config file. Signed-off-by: Stefano Stabellini --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index c734d5ee1c..f00d63c0ab 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -160,6 +160,7 @@ static void init_create_info(libxl_domain_create_info *c_info) memset(c_info, '\0', sizeof(*c_info)); c_info->xsdata = NULL; c_info->platformdata = NULL; + c_info->hap = 1; c_info->hvm = 1; c_info->oos = 1; c_info->ssidref = 0; @@ -441,7 +442,9 @@ static void parse_config_data(const char *configfile_filename_report, !strncmp(buf, "hvm", strlen(buf))) c_info->hvm = 1; - /* hap is missing */ + if (!xlu_cfg_get_long (config, "hap", &l)) + c_info->hap = l; + if (!xlu_cfg_get_string (config, "name", &buf)) c_info->name = strdup(buf); else