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:
Keir Fraser committed 2009-11-30 10:41:28 +00:00
1 parent f0a60fa636
commit c5d895be23
1 file changed
+4 -6
+4 -6
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.