From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Tovpeko Subject: xl: absense of vcpus parameter Date: Thu, 23 Sep 2010 17:38:25 +0400 Message-ID: <4C9B5851.2030801@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050505050103020204090900" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------050505050103020204090900 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. --------------050505050103020204090900 Content-Type: text/x-patch; name="vcpus.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vcpus.patch" 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)) --------------050505050103020204090900 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------050505050103020204090900--