WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxenlight: fix hvm flag when no hvmloader
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Nov 2009 03:05:11 -0800
Delivery-date: Mon, 30 Nov 2009 03:05:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxenlight: fix hvm flag when no hvmloader, Xen patchbot-unstable <=