All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: "Omer K." <okhalid.cern@gmail.com>
Cc: Mats Petersson <mats.petersson@citrix.com>,
	xen-users list <xen-users@lists.xensource.com>,
	xen-devel@lists.xen.org
Subject: Re: How to activate all VPCUS for a domU?
Date: Fri, 7 Dec 2012 15:49:41 -0500	[thread overview]
Message-ID: <20121207204939.GA9664@phenom.dumpdata.com> (raw)
In-Reply-To: <CAPM9MsSrmoG4RLJjNDNn+j=hWuU-r+WbckT-UJXPfJ-J8gbvOQ@mail.gmail.com>

On Fri, Nov 16, 2012 at 08:19:07PM +0000, Omer K. wrote:
> Hi,
> 
> Apologies for earlier spamming the xen-devel list but this message might be
> relevant as I think there is a bug in xm/create.py where 'vcpu_avail'
> option doesn't get properly set.
> 
> I manage to solve the issue of activating all of the vcpus by apply  a
> modified version of the patch earlier discussed:
> 
> http://old-list-archives.xen.org/archives/html/xen-users/2010-09/msg00353.html
> 
> The following patch fixed the issue for me and after this bitmask value was
> activating required vpcu's read from the xen configuration file. Prior to
> that, vpcu_avail was always set to '1' (also verified from 'xenstore-ls -f'
> output).
> 
> --- create.py
> +++ create.py.af
> 
>          if maxvcpus and vcpus:
>              config.append(['vcpus', vcpus])
> -            config.append(['vcpu_avail', (1 << vcpus) -1)])
> +            config.append(['vcpu_avail', getattr(vals, 'vcpu_avail'])
> 
>      def add_conf(n):
>          if hasattr(vals, n):


Could you want repost this with an Signed-off-By. There is a nice
description here on how to do it:

http://wiki.xen.org/wiki/Submitting_Xen_Patches

> 
> Regards.
> Omer
> 
> 
> On Fri, Nov 16, 2012 at 6:21 PM, Mats Petersson
> <mats.petersson@citrix.com>wrote:
> 
> > On 16/11/12 18:09, Omer K. wrote:
> >
> >> Hi,
> >>
> >> I have set maxvcpus and vcpus options in my domU configuration file, and
> >> I can see that X number of vcpu are set for the domU.
> >>
> >> I tried to activate all the vpcus by using vpcu_avail option (using
> >> decimal to represent vpcu bitmask e.g. 24=11000) but it doesn't seem to
> >> work, and only the first vpcu is activated (i.e. has -b- state) while all
> >> other vpcu's set for the domU are in the paused state.
> >>
> >> Can any one share more insights on how to activate all the vpcu's for the
> >> guest domain ?
> >>
> >> Thanks
> >>
> > This definitely belongs to the Xen-Users list, not on Xen-Devel. Please
> > don't post to both lists, it just confuses people.
> >
> > --
> > Mats
> >
> > ______________________________**_________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
> >

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

      reply	other threads:[~2012-12-07 20:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-16 18:09 How to activate all VPCUS for a domU? Omer K.
2012-11-16 18:21 ` Mats Petersson
2012-11-16 20:19   ` Omer K.
2012-12-07 20:49     ` Konrad Rzeszutek Wilk [this message]

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=20121207204939.GA9664@phenom.dumpdata.com \
    --to=konrad@kernel.org \
    --cc=mats.petersson@citrix.com \
    --cc=okhalid.cern@gmail.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xen-users@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.