[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxenlight: fix hvm flag when no hvmloader



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1259577688 0
# Node ID 414af64799998613271ddf14af3c2972b53770a6
# Parent  c4e620a2e65ce57dcee738b520e9ff1d5355a925
libxenlight: fix hvm flag when no hvmloader

Signed-off-by: Tomasz Wroblewski <tomasz.wroblewski@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/libxl/xl.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff -r c4e620a2e65c -r 414af6479999 tools/libxl/xl.c
--- a/tools/libxl/xl.c  Mon Nov 30 10:38:58 2009 +0000
+++ b/tools/libxl/xl.c  Mon Nov 30 10:41:28 2009 +0000
@@ -263,12 +263,10 @@ static void parse_config_file(const char
 
     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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.