All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Novotny <minovotn@redhat.com>
To: "'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>
Subject: [PATCH]  Add maxvcpus support
Date: Wed, 25 Nov 2009 12:14:02 +0100	[thread overview]
Message-ID: <4B0D117A.2070808@redhat.com> (raw)

Hi,
this is patch to add maxvcpus support to xen xm command. It's using 
vcpu_avail bitmask and sets the number of vcpus to maxvcpus if present. 
If it's not present, old behavior is preserved.

In domain config file you can define it as follows:

  maxvcpus = 4
  vcpus = 2

this automatically sets vcpus to 4 and corresponding bitmask to present 
2 vcpus in the guest with option to increase it up to 4 vcpus. If 
maxvcpus is not present, the old behavior for vcpus is preserved, ie. 
you can set vcpus to some number of vcpus to be used and the vcpu_avail 
is set appropriately to use all of them. Only when you use maxvcpus and 
vcpus new vcpu_avail value is calculated to show PV guest the desired 
number of vcpus only.

It's been tested using RHEL-5 32-bit PV guest with maxvcpus = 4 and 
vcpus = 2 and also the previous setup of vcpus = 2 only... In both cases 
I was able to use 'xm vcpu-set {domainId} {numberOfVCPUs}' to increase 
move vcpu count from 0 to maxvcpus/vcpus so it was working as designed.

Michal

Signed-off-By: Michal Novotny<minovotn@redhat.com>

             reply	other threads:[~2009-11-25 11:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25 11:14 Michal Novotny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-11-25 12:43 [PATCH] Add maxvcpus support Michal Novotny

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=4B0D117A.2070808@redhat.com \
    --to=minovotn@redhat.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.