From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Chanudet Subject: [PATCH 7 of 7] xl: hap parameter handling in configuration file Date: Fri, 04 Jun 2010 15:30:19 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Get hap parameter from configuration file. hap parameter can be set to 1 or 0 (default). diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -466,7 +466,10 @@ static void parse_config_data(const char !strncmp(buf, "hvm", strlen(buf))) c_info->hvm = 1; - /* hap is missing */ + c_info->hap = 0; + if (!xlu_cfg_get_string (config, "hap", &buf)) + c_info->hap = (buf[0] == '1'); + if (!xlu_cfg_get_string (config, "name", &buf)) c_info->name = strdup(buf); else