All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	keir@xen.org, jbeulich@suse.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] x86/Dom0: Don't allow dom0_max_vcpus to be zero
Date: Fri, 10 Apr 2015 10:47:18 -0400	[thread overview]
Message-ID: <20150410144718.GD14574@l.oracle.com> (raw)
In-Reply-To: <5526E818.4040300@citrix.com>

On Thu, Apr 09, 2015 at 09:59:04PM +0100, Andrew Cooper wrote:
> 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>

Aye,

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.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 */
> 

  reply	other threads:[~2015-04-10 14:47 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
2015-04-10 14:47   ` Konrad Rzeszutek Wilk [this message]
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=20150410144718.GD14574@l.oracle.com \
    --to=konrad.wilk@oracle.com \
    --cc=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.