From: Paolo Bonzini <pbonzini@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org, gleb@redhat.com
Subject: Re: [uq/master patch 2/2] kvm-all.c: max_cpus should not exceed KVM vcpu limit
Date: Tue, 20 Aug 2013 18:44:18 +0200 [thread overview]
Message-ID: <52139CE2.6020604@redhat.com> (raw)
In-Reply-To: <20130812195730.363325196@redhat.com>
Il 12/08/2013 21:56, Marcelo Tosatti ha scritto:
> maxcpus, which specifies the maximum number of hotpluggable CPUs,
> should not exceed KVM's vcpu limit.
>
> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
>
> Index: qemu/kvm-all.c
> ===================================================================
> --- qemu.orig/kvm-all.c
> +++ qemu/kvm-all.c
> @@ -1391,6 +1391,13 @@ int kvm_init(void)
> goto err;
> }
>
> + if (max_cpus > max_vcpus) {
> + ret = -EINVAL;
> + fprintf(stderr, "Number of max_cpus requested (%d) exceeds max cpus "
> + "supported by KVM (%d)\n", max_cpus, max_vcpus);
> + goto err;
> + }
> +
> s->vmfd = kvm_ioctl(s, KVM_CREATE_VM, 0);
> if (s->vmfd < 0) {
> #ifdef TARGET_S390X
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
I applied this patch to uq/master. Thanks,
Paolo
prev parent reply other threads:[~2013-08-20 16:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-12 19:56 [uq/master patch 0/2] kvm max vcpu limit fixes Marcelo Tosatti
2013-08-12 19:56 ` [uq/master patch 1/2] kvm-all.c: use recommended max vcpus limit Marcelo Tosatti
2013-08-18 15:28 ` Paolo Bonzini
2013-08-18 16:15 ` Marcelo Tosatti
2013-08-12 19:56 ` [uq/master patch 2/2] kvm-all.c: max_cpus should not exceed KVM vcpu limit Marcelo Tosatti
2013-08-20 16:44 ` Paolo Bonzini [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=52139CE2.6020604@redhat.com \
--to=pbonzini@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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.