All of lore.kernel.org
 help / color / mirror / Atom feed
* xl: absense of vcpus parameter
@ 2010-09-23 13:38 Sergey Tovpeko
  2010-09-23 18:25 ` Ian Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey Tovpeko @ 2010-09-23 13:38 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Hello, list!

Using xl, you should obligatory specify 'vcpus' parameter to domain's 
configuration file.
Without this parameter HVM Windows7 goes to BSOD : 
HAL_INITIALIZATION_FAILED,
and WinXP reboots constantly.

I prepared patch, that initializes vcpus parameter inside xl.

[-- Attachment #2: vcpus.patch --]
[-- Type: text/x-patch, Size: 514 bytes --]

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index cb9dda7..b5947c1 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -638,6 +638,9 @@ static void parse_config_data(const char *configfile_filename_report,
     if (!xlu_cfg_get_long (config, "vcpus", &l)) {
         b_info->max_vcpus = l;
         b_info->cur_vcpus = (1 << l) - 1;
+    } else {
+        b_info->max_vcpus = 1;
+        b_info->cur_vcpus = 1;
     }
 
     if (!xlu_cfg_get_long (config, "maxvcpus", &l))

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-23 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 13:38 xl: absense of vcpus parameter Sergey Tovpeko
2010-09-23 18:25 ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.