public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Jes Sorensen <jes.sorensen@gmail.com>
Cc: Avi Kivity <avi@redhat.com>, Gleb Natapov <gleb@redhat.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [patch] qemu-kvm introduce -maxcpus argument
Date: Fri, 19 Jun 2009 15:15:27 +0100	[thread overview]
Message-ID: <20090619141527.GA18392@redhat.com> (raw)
In-Reply-To: <4A3B99DD.50306@gmail.com>

On Fri, Jun 19, 2009 at 03:59:57PM +0200, Jes Sorensen wrote:
> Hi,
> 
> This one introduces a -maxcpus setting, allowing the user to specify
> the maximum number of vCPUs the system can have, as discussed with Gleb
> earlier in the week.

What is the maximum value for the 'maxcpus' setting for KVM ? 

libvirt currently does

    fd = open("/dev/kvm")
    r = ioctl(fd, KVM_CHECK_EXTENSION, KVM_CAP_NR_VCPUS);

to figure out what the maximum allowed vCPUs will be for KVM,
and currently it is returning 16 IIRC.

> @@ -5666,6 +5667,13 @@ int main(int argc, char **argv, char **e
>                      exit(1);
>                  }
>                  break;
> +            case QEMU_OPTION_maxcpus:
> +                max_cpus = atoi(optarg);
> +                if ((max_cpus < 1) || (max_cpus > machine->max_cpus)) {
> +                    fprintf(stderr, "Invalid number of CPUs\n");
> +                    exit(1);
> +                }
> +                break;
>  	    case QEMU_OPTION_vnc:
>                  display_type = DT_VNC;
>  		vnc_display = optarg;

This implies the limit (for x86 pc machine at least) is now 255. Is that
the correct interpretation on my part ?


Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

  reply	other threads:[~2009-06-19 14:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 13:59 [patch] qemu-kvm introduce -maxcpus argument Jes Sorensen
2009-06-19 14:15 ` Daniel P. Berrange [this message]
2009-06-19 14:23   ` Jes Sorensen
2009-06-21 12:53     ` Avi Kivity
2009-06-19 15:24 ` Amit Shah
2009-06-22  7:11   ` Jes Sorensen
2009-06-21 12:54 ` Avi Kivity

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=20090619141527.GA18392@redhat.com \
    --to=berrange@redhat.com \
    --cc=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=jes.sorensen@gmail.com \
    --cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox