aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/xl.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-30 10:41:28 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-30 10:41:28 +0000
commitc5d895be237fd4e078eefd5c7e6630a6f4b540fe (patch)
tree6f091f0b608986609dd4ec53f7614f03a2deb4d2 /tools/libxl/xl.c
parentf0a60fa636c0caeca43fc98e905598f0578749ee (diff)
downloadxen-c5d895be237fd4e078eefd5c7e6630a6f4b540fe.tar.gz
xen-c5d895be237fd4e078eefd5c7e6630a6f4b540fe.tar.bz2
xen-c5d895be237fd4e078eefd5c7e6630a6f4b540fe.zip
libxenlight: fix hvm flag when no hvmloader
Signed-off-by: Tomasz Wroblewski <tomasz.wroblewski@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r--tools/libxl/xl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c
index 96ed50ffe4..88771c6f6b 100644
--- a/tools/libxl/xl.c
+++ b/tools/libxl/xl.c
@@ -263,12 +263,10 @@ static void parse_config_file(const char *filename,
init_create_info(c_info);
- if (config_lookup_string (&config, "builder", &buf) == CONFIG_TRUE) {
- if (!strncmp(buf, "hvm", strlen(buf)))
- c_info->hvm = 1;
- else
- c_info->hvm = 0;
- }
+ c_info->hvm = 0;
+ if ((config_lookup_string (&config, "builder", &buf) == CONFIG_TRUE) &&
+ !strncmp(buf, "hvm", strlen(buf)))
+ c_info->hvm = 1;
/* hap is missing */
if (config_lookup_string (&config, "name", &buf) == CONFIG_TRUE)