From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
jbeulich@suse.com, keir@xen.org
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH] x86/Dom0: Don't allow dom0_max_vcpus to be zero
Date: Thu, 09 Apr 2015 21:59:04 +0100 [thread overview]
Message-ID: <5526E818.4040300@citrix.com> (raw)
In-Reply-To: <1428611923-1282-1-git-send-email-boris.ostrovsky@oracle.com>
On 09/04/2015 21:38, Boris Ostrovsky wrote:
> In case dom0_max_vcpus is incorrectly specified on boot line make sure
> we will still boot.
>
> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Good catch - lets not do that.
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> xen/arch/x86/domain_build.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c
> index e5c845c..378e650 100644
> --- a/xen/arch/x86/domain_build.c
> +++ b/xen/arch/x86/domain_build.c
> @@ -92,6 +92,8 @@ static void __init parse_dom0_max_vcpus(const char *s)
> else /* N, N-, or N-M */
> {
> opt_dom0_max_vcpus_min = simple_strtoul(s, &s, 0);
> + if ( opt_dom0_max_vcpus_min == 0 )
> + opt_dom0_max_vcpus_min = 1;
> if ( !*s ) /* N */
> opt_dom0_max_vcpus_max = opt_dom0_max_vcpus_min;
> else if ( *s++ == '-' && *s ) /* N-M */
next prev parent reply other threads:[~2015-04-09 20:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-09 20:38 [PATCH] x86/Dom0: Don't allow dom0_max_vcpus to be zero Boris Ostrovsky
2015-04-09 20:59 ` Andrew Cooper [this message]
2015-04-10 14:47 ` Konrad Rzeszutek Wilk
2015-04-14 7:21 ` Jan Beulich
2015-04-14 13:52 ` Boris Ostrovsky
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=5526E818.4040300@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.org \
/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.