From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Subject: [Qemu-devel] [PULL 1/3] kvm-all: exit in case max vcpus exceeded
Date: Tue, 11 Mar 2014 11:50:36 +0100 [thread overview]
Message-ID: <1394535038-32454-2-git-send-email-pbonzini@redhat.com> (raw)
In-Reply-To: <1394535038-32454-1-git-send-email-pbonzini@redhat.com>
From: Marcelo Tosatti <mtosatti@redhat.com>
Rather than fall back to TCG (so the user has to discover
whats happening, in case of no access to qemu stdout/stderr).
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
kvm-all.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kvm-all.c b/kvm-all.c
index fd8157a..f299532 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1420,11 +1420,10 @@ int kvm_init(void)
nc->name, nc->num, soft_vcpus_limit);
if (nc->num > hard_vcpus_limit) {
- ret = -EINVAL;
fprintf(stderr, "Number of %s cpus requested (%d) exceeds "
"the maximum cpus supported by KVM (%d)\n",
nc->name, nc->num, hard_vcpus_limit);
- goto err;
+ exit(1);
}
}
nc++;
--
1.8.3.1
next prev parent reply other threads:[~2014-03-11 10:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 10:50 [Qemu-devel] [PULL 0/3] KVM uq/master changes for 2013-03-14 Paolo Bonzini
2014-03-11 10:50 ` Paolo Bonzini [this message]
2014-03-11 10:50 ` [Qemu-devel] [PULL 2/3] file_ram_alloc: unify mem-path, mem-prealloc error handling Paolo Bonzini
2014-03-11 10:50 ` [Qemu-devel] [PULL 3/3] target-i386: bugfix of Intel MPX Paolo Bonzini
2014-03-11 21:10 ` Andreas Färber
2014-03-11 19:54 ` [Qemu-devel] [PULL 0/3] KVM uq/master changes for 2013-03-14 Peter Maydell
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=1394535038-32454-2-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).