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-devel

[Xen-devel] xl: absense of vcpus parameter

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xl: absense of vcpus parameter
From: Sergey Tovpeko <tsv.devel@xxxxxxxxx>
Date: Thu, 23 Sep 2010 17:38:25 +0400
Delivery-date: Thu, 23 Sep 2010 06:43:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=H7bTlP2k8Db81Oh9Itdc9eI+gbZ4+nP9IbgKhyHpcwQ=; b=MYupTdddA2sxN7H6qChzr+xIXgOmIyGYYlNA41xSDVuXkGFw9CAavVYxSuVFrWC/E3 wmdnOgl6MinViQnVQPAYtrfNeUMTu//uaFwLzS0B+W9TC2UIXqNzQLLY4+FVRUcS2d4i cjP1VpI+V3Ho6vKdbyEmCk74CpHvrUenE537s=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=pFqZqP55IMnvIfmRKSFyrV8FviJw0Qi7kmDa01R4dV4CIoIxjxWLgf/ztaKuAvV3i7 LyZ86I2/EMgqNDHVGKWYUBYVnIpbM8ezktcABwDzddhUh09JzIB7FWWB91XwzCkP44S7 uP7TgL2N8US/ChQ+5t6ljncrFVh2BpbWIIs5o=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
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.
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))
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>