qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vl: remove (max_cpus > 255) check from smp_parse
@ 2013-11-25  3:39 Alexey Kardashevskiy
  2013-12-02 17:06 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 1 reply; 13+ messages in thread
From: Alexey Kardashevskiy @ 2013-11-25  3:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alexey Kardashevskiy, qemu-trivial

Since modern POWER7/POWER8 chips can have more that 256 CPU threads
(>2000 actually), remove this check from smp_parse.

The CPUs number is still checked against machine->max_cpus and this check
should be enough not to break other archs.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 vl.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/vl.c b/vl.c
index 8d5d874..e6ed260 100644
--- a/vl.c
+++ b/vl.c
@@ -1420,10 +1420,6 @@ static void smp_parse(QemuOpts *opts)
         max_cpus = smp_cpus;
     }
 
-    if (max_cpus > 255) {
-        fprintf(stderr, "Unsupported number of maxcpus\n");
-        exit(1);
-    }
     if (max_cpus < smp_cpus) {
         fprintf(stderr, "maxcpus must be equal to or greater than smp\n");
         exit(1);
-- 
1.8.4.rc4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-02-14  7:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25  3:39 [Qemu-devel] [PATCH] vl: remove (max_cpus > 255) check from smp_parse Alexey Kardashevskiy
2013-12-02 17:06 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-12-02 22:09   ` Andreas Färber
2013-12-02 23:03     ` Alexey Kardashevskiy
2013-12-03  9:00       ` Markus Armbruster
2013-12-03 13:30       ` Andreas Färber
2013-12-03 14:47         ` Eduardo Habkost
2013-12-04  5:50           ` Alexey Kardashevskiy
2013-12-04 12:48             ` Eduardo Habkost
2014-02-14  6:56               ` Alexey Kardashevskiy
2014-02-14  7:34                 ` Paolo Bonzini
2013-12-03 10:44     ` Igor Mammedov
2013-12-03 14:33       ` Eduardo Habkost

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).