[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xl: enable hap, parse hap option in the config files
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1275642782 -3600 # Node ID 51560365c4a4330d218d5b0ad355d08b07196d20 # Parent 6f71276b1f214d01fb717c3940c468a5e1321fa3 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 <stefano.stabellini@xxxxxxxxxxxxx> --- tools/libxl/xl_cmdimpl.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -r 6f71276b1f21 -r 51560365c4a4 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Fri Jun 04 10:12:11 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri Jun 04 10:13:02 2010 +0100 @@ -160,6 +160,7 @@ static void init_create_info(libxl_domai 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 !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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |