mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
f0a60fa636
commit
c5d895be23
1 file changed
+4
-6
+4
-6
@@ -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)
|
||||
|
||||