From: MINAI Katsuhito <minai@jp.fujitsu.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] boot failes when strange value is specified for dom0_max_vcpus
Date: Thu, 31 Aug 2006 14:05:09 +0900 [thread overview]
Message-ID: <20060831133221.3018.MINAI@jp.fujitsu.com> (raw)
Hi,
This patch corrects the following bug.
The startup of Xen fails when the following values are specified
for boot option dom0_max_vcpus.
- Value more than number of physical CPU
- Negative value
Signed-off-by: Katsuhito Minai <minai@jp.fujitsu.com>
diff -r f790546ecfda xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c Mon Aug 28 20:22:56 2006 +0100
+++ b/xen/arch/x86/domain_build.c Tue Aug 29 17:48:30 2006 +0900
@@ -671,6 +671,8 @@ int construct_dom0(struct domain *d,
if ( opt_dom0_max_vcpus == 0 )
opt_dom0_max_vcpus = num_online_cpus();
+ if ( opt_dom0_max_vcpus > num_online_cpus() )
+ opt_dom0_max_vcpus = num_online_cpus();
if ( opt_dom0_max_vcpus > MAX_VIRT_CPUS )
opt_dom0_max_vcpus = MAX_VIRT_CPUS;
printk("Dom0 has maximum %u VCPUs\n", opt_dom0_max_vcpus);
Best regards,
Minai
next reply other threads:[~2006-08-31 5:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-31 5:05 MINAI Katsuhito [this message]
2006-09-11 7:10 ` [PATCH] boot failes when strange value is specified for dom0_max_vcpus MINAI Katsuhito
2006-10-18 6:15 ` MINAI Katsuhito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060831133221.3018.MINAI@jp.fujitsu.com \
--to=minai@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.